Networking Forums

Networking Forums > Computer Networking > Linux Networking > how do I find my dns server address?

Reply
Thread Tools Display Modes

how do I find my dns server address?

 
 
idiotprogrammer
Guest
Posts: n/a

 
      07-10-2006, 07:44 PM
Hi, I'm on a remote wifi network and want to connect using a static IP.
However, that requires knowing the dns server for the network
configuration.

How do I identify what the dns server address is for my current
connection? Why can't I just give the address of the router
(192.168.2.1) as my dns server (because that's where you would go for
resolution if you were connecting via dhcp.

 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      07-10-2006, 08:01 PM
On 10 Jul 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, idiotprogrammer wrote:

>I'm on a remote wifi network and want to connect using a static IP.
>However, that requires knowing the dns server for the network
>configuration.


and gateway IP, and that the router will accept statically assigned IPs. If
this is a public hotspot, the last may not be true.

>How do I identify what the dns server address is for my current
>connection?


From the user level, you ask the network administrator. You could also
ask a whois server, or someone's working DNS server what the addresses
are. You posted from

>NNTP-Posting-Host: 24.174.7.121


[compton ~]$ host -a 24.174.7.121
rcode = 0 (Success), ancount=1
121.7.174.24.IN-ADDR.ARPA 3600 IN PTR cpe-24-174-7-121.houston.res.rr.com
For authoritative answers, see:
7.174.24.IN-ADDR.ARPA 3600 IN NS dns-pri-01.texas.rr.com
7.174.24.IN-ADDR.ARPA 3600 IN NS dns-sec-02.texas.rr.com
Additional information:
dns-pri-01.texas.rr.com 5524 IN A 24.93.40.32
dns-sec-02.texas.rr.com 5524 IN A 24.93.40.33
[compton ~]$

>Why can't I just give the address of the router (192.168.2.1) as my dns
>server (because that's where you would go for resolution if you were
>connecting via dhcp.


If that's what the DHCP server is handing out, there's no reason you can't
use that address for name service as well. Did you try it? What happened?

Old guy
 
Reply With Quote
 
David Dorward
Guest
Posts: n/a

 
      07-10-2006, 08:03 PM
idiotprogrammer wrote:

> Hi, I'm on a remote wifi network and want to connect using a static IP.
> However, that requires knowing the dns server for the network
> configuration.
>
> How do I identify what the dns server address is for my current
> connection?


Look in your /etc/resolve.conf

> Why can't I just give the address of the router
> (192.168.2.1) as my dns server (because that's where you would go for
> resolution if you were connecting via dhcp.


So? A computer can run more than one piece of server software at once.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
robert
Guest
Posts: n/a

 
      07-11-2006, 07:03 PM
Why not just run DNS on your machine, and not worry about external
services.
Makes things easy when ISP upstream moves things around.
Robert

On Mon, 10 Jul 2006 15:01:12 -0500, Moe Trin wrote:

> On 10 Jul 2006, in the Usenet newsgroup comp.os.linux.networking, in article
> <(E-Mail Removed) .com>, idiotprogrammer wrote:
>
>>I'm on a remote wifi network and want to connect using a static IP.
>>However, that requires knowing the dns server for the network
>>configuration.

>
> and gateway IP, and that the router will accept statically assigned IPs. If
> this is a public hotspot, the last may not be true.
>
>>How do I identify what the dns server address is for my current
>>connection?

>
> From the user level, you ask the network administrator. You could also
> ask a whois server, or someone's working DNS server what the addresses
> are. You posted from
>
>>NNTP-Posting-Host: 24.174.7.121

>
> [compton ~]$ host -a 24.174.7.121
> rcode = 0 (Success), ancount=1
> 121.7.174.24.IN-ADDR.ARPA 3600 IN PTR cpe-24-174-7-121.houston.res.rr.com
> For authoritative answers, see:
> 7.174.24.IN-ADDR.ARPA 3600 IN NS dns-pri-01.texas.rr.com
> 7.174.24.IN-ADDR.ARPA 3600 IN NS dns-sec-02.texas.rr.com
> Additional information:
> dns-pri-01.texas.rr.com 5524 IN A 24.93.40.32
> dns-sec-02.texas.rr.com 5524 IN A 24.93.40.33
> [compton ~]$
>
>>Why can't I just give the address of the router (192.168.2.1) as my dns
>>server (because that's where you would go for resolution if you were
>>connecting via dhcp.

>
> If that's what the DHCP server is handing out, there's no reason you can't
> use that address for name service as well. Did you try it? What happened?
>
> Old guy


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS problems: 'Can't find server name for address x.x.x.x : server mark@ctcommunications.com Windows Networking 3 07-21-2006 05:43 PM
How do I find MAC address? louise Wireless Internet 10 03-04-2006 08:10 PM
How to find IP address Blair Windows Networking 7 12-16-2005 04:37 PM
How to find out ip address of ap joecov Wireless Internet 5 01-20-2005 05:44 PM
How do I find out my address so I can ssh from outside dbd Linux Networking 7 12-04-2003 12:18 PM



1 2 3 4 5 6 7 8 9 10 11