WIN 10 i rešavanje problema sa rezolucijom adresa i sporim Intra/Internetom
Sve ide kroz komandnu liniju!
1. Flush DNS :
C:\Users\velda>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
2. Provera koji je Domain Controller za lokalnu mašinu :
C:\Users\veldae>echo %logonserver%
\\DC001
3. Provera veze ka DC-u :
C:\Users\velda>nltest /sc_query:lokalni.domen
Flags: 30 HAS_IP HAS_TIMESERV
Trusted DC Name \\DC001.lokalni.domen
Trusted DC Connection Status Status = 0 0x0 NERR_Success
The command completed successfully
This output shows the status of your secure channel, and the name of the domain controller you are querying. You will need to provide the name of the domain you are connected to.
4. Izlistati trenutnu DNS postavku
C:\Users\velda>ipconfig /displaydns
Windows IP Configuration
DC001.lokalni.domen
—————————————-
Record Name . . . . . : DC001.lokalni.domen
Record Type . . . . . : 1
Time To Live . . . . : 618
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 10.10.10.001
DC002.lokalni.domen
—————————————-
Record Name . . . . . : DC002.lokalni.domen
Record Type . . . . . : 1
Time To Live . . . . : 1377
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 10.10.10.002
TTL (time to live) vrednost je u sekundama.
5. Proveriti hosts fajl
Lokacija : C:\Windows\System32\drivers\etc
Ime fajla : hosts
Način otvaranja : OBAVEZNO kao Administrator, ili izmene fajla neće biti moguće
Ovaj fajl bi trebalo da sadrži bar dva zapisa za Intranet DNS servere, npr :
DC001.lokalni.domen 10.10.10.001
DC002.lokalni.domen 10.10.10.002
6.Alat nslookup
Ovaj alat koriti DNS server iz hosts fajla, tako da ako su u njemu samo Intranet DNS-ovi, samo intranet upiti će raditi.
Alat omogućava i direktne i reverzne upite.
C:\Users\velda>nslookup
Default Server: DC001.lokalni.domen
Address: 10.10.10.001
> blabla
Server: DC001.lokalni.domen
Address: 10.10.10.001
Name: bla1.lokalni.domen
Address: 10.10.10.100
Aliases: blabla.lokalni.domen
7. Videti Name Server za određeni (ovde interni) domen
C:\Users\velda>nslookup
Default Server: DC001.lokalni.domen
Address: 10.10.10.001
> set q=ns
> lokalni.domen
Server: DC001.lokalni.domen
Address: 10.10.10.001
lokalni.domen nameserver = DC001.lokalni.domen
lokalni.domen nameserver = DC002.lokalni.domen
DC001.lokalni.domen internet address = 10.10.10.001
DC002.lokalni.domen internet address = 10.10.10.002
Ako se stavi “set q=mx” dobiće se podaci za mail server za dati domen.
8. Kako dobiti dodatne informacije o DNS zahtevu
C:\Users\velda>nslookup
Default Server: DC001.lokalni.domen
Address: 10.10.10.001
> set debug
> lokalni.domen
Server: DC001.lokalni.domen
Address: 10.10.10.001
————
Got answer:
HEADER:
opcode = QUERY, id = 2, rcode = NXDOMAIN
header flags: response, auth. answer, want recursion, recursion avail.
questions = 1, answers = 0, authority records = 1, additional = 0
QUESTIONS:
lokalni.domen, type = A, class = IN
AUTHORITY RECORDS:
-> lokalni.domen
ttl = 3600 (1 hour)
primary name server = DC001.lokalni.domen
responsible mail addr = hostmaster.lokalni.domen
serial = 373745
refresh = 900 (15 mins)
retry = 600 (10 mins)
expire = 86400 (1 day)
default TTL = 900 (15 mins)
9. Ruta do DNS servera
C:\Users\velda>tracert lokalni.domen
Tracing route to lokalni.domen [10.10.10.002]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 10.10.10.10
2 <1 ms <1 ms <1 ms DC002.lokalni.domen [10.10.10.002]
Trace complete.
Dobri linkovi :
link1
link2