[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



On Tue, 24 Aug 2004, Benjamin Scherrey wrote:

> Anyone know the DNS server addresses for Charter.net or, optionally, can tell me how to extract
> out the DNS server address provided by DHCP under RedHat 9? I've got my network setup via this
> cable modem but they apparently don't publish the DNS addresses.

One way that probably works on many *nix systems is to look something up 
with nslookup or dig command, which will tell you which nameservers it 
querried. There is probably a more elegant way, but it seems to work:

twiggy:~> nslookup www.google.com
Server:  dns.atl1.speakeasy.net
Address:  216.27.175.2

Non-authoritative answer:
Name:    www.google.akadns.net
Addresses:  64.233.161.104, 64.233.161.99
Aliases:  www.google.com

twiggy:~> dig www.google.com

; <<>> DiG 8.3 <<>> www.google.com
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31210
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;;      www.google.com, type = A, class = IN

;; ANSWER SECTION:
www.google.com.         14m52s IN CNAME  www.google.akadns.net.
www.google.akadns.net.  8m27s IN A      64.233.161.104
www.google.akadns.net.  8m27s IN A      64.233.161.99

;; Total query time: 26 msec
;; FROM: twiggy to SERVER: 216.27.175.2
;; WHEN: Tue Aug 24 19:34:50 2004
;; MSG SIZE  sent: 32  rcvd: 99

 	bjorn


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00631" href="msg00631.html">[ale] DNS Servers for Charter</a></strong>
<ul><li><em>From:</em> scherrey at proteus-tech.com (Benjamin Scherrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00634.html">[ale] DNS Servers for Charter</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00636.html">[ale] DNS Servers for Charter</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00634.html">[ale] DNS Servers for Charter</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00636.html">[ale] DNS Servers for Charter</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00635"><strong>Date</strong></a></li>
<li><a href="threads.html#00635"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>