Mac Version of IPconfig

Discussion in 'Mac Basics and Help' started by pcproff, May 10, 2005.

  1. macrumors member

    pcproff

    Joined:
    Jul 14, 2004
    Location:
    Ft. Lauderdale,FL.
    #1
    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
     
  2. emw
    macrumors G4

    emw

    Joined:
    Aug 2, 2004
    #2
    You should be able to find that in your Network Preference Pane in System Preferences.
     
  3. macrumors 65816

    hcuar

    Joined:
    Jul 23, 2004
    Location:
    Dallas
  4. macrumors 68020

    daveL

    Joined:
    Jun 18, 2003
    Location:
    Montana
    #4
    Since when does "ifconfig" show you the DNS servers' addresses?

    Network Preferences doesn't show them either if you pick them up via DHCP. If you set them manually, the OP wouldn't be asking the question, I wouldn't think.

    Anyway, in Terminal type "cat /etc/resolv.conf"; the IP addresses of your DNS servers should be listed there.
     
  5. Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #5
    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.
     
  6. macrumors 603

    Mechcozmo

    Joined:
    Jul 17, 2004
    #6
    ipconfig -getifadder -(address name, either en0 or en1 most of the time)
    Gets you your IP address

    That's all I know, sorry.
     
  7. Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #7
    What about using nslookup and then using the "server" query?

    Or contacting the ISP's technical support?
     
  8. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #8
    +1

    nslookup and dig will yeild your primary DNS server IP
     
  9. Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #9
    dig, right.. good call!

    Code:
    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
    
    OR

    Code:
    yellow% dig -x 17.254.0.91 | grep SERVER
    SERVER: 100.100.100.100#53(100.100.100.100)
     
  10. macrumors 68020

    daveL

    Joined:
    Jun 18, 2003
    Location:
    Montana
    #10
    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.

    I didn't suggest looking at the router config, since I figured if the OP knew enough to get into the router, he wouldn't be asking the question.
     
  11. thread starter macrumors member

    pcproff

    Joined:
    Jul 14, 2004
    Location:
    Ft. Lauderdale,FL.
    #11
    DNS

    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.
     
  12. Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #12
    The Comcast tech wouldn't give you their DNS server? Unbelievable. Call back. Tell them there are many broadband offerings out there, you're willing to seek other companies if they can't give you something as simple as a DNS server's IP address.
     
  13. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #13
    Log into your routers admin panel and look at the Status. It gives you the DNS servers it picked up from your modem.

    I also use some supposedly public DNS servers at 4.2.2.2 and 4.2.2.3 which are tons faster than RR's.
     

    Attached Files:

Share This Page