I need to find the dns server's ip from my isp. Is there something I can look it up on the mac just like in windows ipconfig /all?
Thanks guys
Thanks guys
Since when does "ifconfig" show you the DNS servers' addresses?hcuar said:ifconfig
Note the "f" in ifconfig
daveL said:Anyway, in Terminal type "cat /etc/resolv.conf"; the IP addresses of your DNS servers should be listed there.
yellow said:What about using nslookup and then using the "server" query?
Or contacting the ISP's technical support?
yellow% dig -x 17.254.0.91
; <<>> DiG 9.2.2 <<>> -x 17.254.0.91
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2781
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 4
;; QUESTION SECTION:
;91.0.254.17.in-addr.arpa. IN PTR
;; ANSWER SECTION:
91.0.254.17.in-addr.arpa. 86400 IN PTR www.apple.com.
;; AUTHORITY SECTION:
17.in-addr.arpa. 86400 IN NS nserver4.apple.com.
17.in-addr.arpa. 86400 IN NS nserver.asia.apple.com.
17.in-addr.arpa. 86400 IN NS nserver.euro.apple.com.
17.in-addr.arpa. 86400 IN NS nserver.apple.com.
17.in-addr.arpa. 86400 IN NS nserver2.apple.com.
17.in-addr.arpa. 86400 IN NS nserver3.apple.com.
;; ADDITIONAL SECTION:
nserver.apple.com. 408147 IN A 17.254.0.50
nserver2.apple.com. 408147 IN A 17.254.0.59
nserver3.apple.com. 408147 IN A 17.112.144.50
nserver4.apple.com. 408147 IN A 17.112.144.59
;; Query time: 149 msec
[b][color=red];; SERVER: 100.100.100.100#53(100.100.100.100)[/color][/b]
;; WHEN: Tue May 10 20:15:03 2005
;; MSG SIZE rcvd: 278
yellow% dig -x 17.254.0.91 | grep SERVER
SERVER: 100.100.100.100#53(100.100.100.100)
I guess it depends on your router. I set the DNS addresses on my router, but they don't show in Network Preferences (DHCP). They are, however, put into /etc/resolv.conf, not the router address. I'm using a Linksys router.mkrishnan said:I was wondering about ifconfig's ability to give you this kind of info too.... but even with the resolv.conf file, I get the router's address as the nameserver, and not the real DNS.
Airport Admin Utility does provide it, in the internet tab. I bet if you're using another router, you can find it in the config pages you get when you point a browser at the router's IP.
pcproff said:Thanks guys for the responses. Yes, I also have a Linksys Router and yes I can into the interface and assign different local static ip's to my different mac's. example: PB: 192.168.1.100 Mini: 192.168.1.101 G4: 192.168.1.102. Unless I set the network configuration in the wireless card to DHCP I do not connect. I realize I need to add the DNS address to the if I am going to configure it manually. The ISP tech support would not disclose this info (comcast) So all I need to do is get that DNS address while I am connected while in DHCP. Hope you guys got all that lol.