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

    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
    ( as my dns server (because that's where you would go for
    resolution if you were connecting via dhcp.
    idiotprogrammer, Jul 10, 2006
    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
    rcode = 0 (Success), ancount=1 3600 IN PTR
    For authoritative answers, see:
    7.174.24.IN-ADDR.ARPA 3600 IN NS
    7.174.24.IN-ADDR.ARPA 3600 IN NS
    Additional information: 5524 IN A 5524 IN A
    [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
    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
  4. idiotprogrammer

    robert Guest

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

    robert, Jul 11, 2006
    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.