how do I find my dns server address?

Discussion in 'Linux Networking' started by idiotprogrammer, Jul 10, 2006.

  1. 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.
     
    idiotprogrammer, Jul 10, 2006
    #1
    1. Advertisements

  2. idiotprogrammer

    Moe Trin Guest

    On 10 Jul 2006, in the Usenet newsgroup comp.os.linux.networking, in article
    and gateway IP, and that the router will accept statically assigned IPs. If
    this is a public hotspot, the last may not be true.
    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
    [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 ~]$
    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
     
    Moe Trin, Jul 10, 2006
    #2
    1. Advertisements

  3. Look in your /etc/resolve.conf
    So? A computer can run more than one piece of server software at once.
     
    David Dorward, Jul 10, 2006
    #3
  4. idiotprogrammer

    robert Guest

    Why not just run DNS on your machine, and not worry about external
    services.
    Makes things easy when ISP upstream moves things around.
    Robert

     
    robert, Jul 11, 2006
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.