Results 1 to 3 of 3

Thread: DNS resolving Ubuntu 13.04 (64-bit)

  1. #1
    Join Date
    Jun 2011

    DNS resolving Ubuntu 13.04 (64-bit)

    Hi everybody,

    First of all, this is my first post, since I managed to solve all other problems I ever had using Ubuntu by other post on this forum (Thanks for that by the way!), but this time I didn't find the solution, so if the post in the wrong location: sorry!

    After a fresh install of Ubuntu Desktop 13.04 (64-bit) on a pc that previously had Ubuntu 12.10 installed, my DNS resolving is giving some strange issues. In short, I can't ping a host name of an internal device, but I can ping the ip address. This only happens internally, so pinging or works OK. In the morning, before the upgrade, it worked perfectly and after the upgrade, it doesn't work at all.

    I've got a home server running Ubuntu Server 12.04.2 LTS OS with two virtual machines: dns1 (primary master) and dns2 (secondary master), both are using Bind9 for internal DNS resolving and caching, also running Ubuntu Server 12.04.2 LTS.
    Both the servers are working without issues, since on other devices (Windows, Android, Ubuntu) resolving and pinging an internal host name is working OK.

    Here is an overview of my dns database on the primary master dns server:
    IN      NS      dns1.home.local.
    IN      NS      dns2.home.local.
    dns1            IN      A
    dns2            IN      A
    router          IN      A
    homeserver      IN      A
    mypc-lan        IN      A
    mypc-wifi       IN      A
    And here is an overview of my network configuration on the pc with the issues:
    me@mypc:~# nm-tool
    NetworkManager Tool
    - Device: eth0  [Thuisverbinding] ----------------------------------------------
      Type:              Wired
      Driver:            atl1c
      State:             connected
      Default:           yes
      HW Address:        **:*:**:**:**:**
        Carrier Detect:  yes
        Speed:           1000 Mb/s
      Wired Properties
        Carrier:         on
      IPv4 Settings:
        Prefix:          24 (
        DNS:    (DNS of my ISP)
    So what actually happens is:
    me@mypc:~$ ping
    PING ( 56(84) bytes of data.
    64 bytes from icmp_req=1 ttl=64 time=0.564 ms
    64 bytes from icmp_req=2 ttl=64 time=0.641 ms
    64 bytes from icmp_req=3 ttl=64 time=0.647 ms
    64 bytes from icmp_req=4 ttl=64 time=0.621 ms
    --- ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 2998ms
    rtt min/avg/max/mdev = 0.564/0.618/0.647/0.037 ms
    me@mypc:~$ ping router.home.local
    ping: unknown host router.home.local
    But it seems that resolving the DNS zone works fine, as can be seen here:
    me@mypc:~$ dig router.home.local
    ; <<>> DiG 9.9.2-P1 <<>> router.home.local
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20969
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
    ; EDNS: version: 0, flags:; udp: 4096
    ;router.home.local.        IN    A
    router.home.local.    604800    IN    A
    home.local.        604800    IN    NS    dns1.home.local.
    home.local.        604800    IN    NS    dns2.home.local.
    dns1.home.local.    604800    IN    A
    dns2.home.local.    604800    IN    A
    ;; Query time: 1 msec
    ;; SERVER:
    ;; WHEN: Sun Apr 28 16:23:11 2013
    ;; MSG SIZE  rcvd: 132
    (I already changed some settings to replace ;;SERVER: with ;;SERVER:, but this didn't solve anything.)

    Using the host command gives the expected results:
    me@mypc:~$ host router.home.local
    router.home.local has address
    me@mypc:~$ host domain name pointer router.home.local
    What I think is really strange is that I can sometimes ping router (without .home.local) after I add the search domain through the Network Manager tool, which doesn't work anymore after a reboot:
    me@mypc:~# ping router
    PING router.home.local ( 56(84) bytes of data.
    64 bytes from router.home.local ( icmp_req=1 ttl=64 time=0.698 ms
    64 bytes from router.home.local ( icmp_req=2 ttl=64 time=0.651 ms
    64 bytes from router.home.local ( icmp_req=3 ttl=64 time=0.597 ms
    64 bytes from router.home.local ( icmp_req=4 ttl=64 time=0.523 ms
    --- router.home.local ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 0.523/0.617/0.698/0.067 ms
    This is where I get stuck and I'm hoping that somebody is able to help me with this.
    Sorry for the long post.


  2. #2
    Join Date
    Jan 2010
    Ubuntu 12.04 Precise Pangolin

    Re: DNS resolving Ubuntu 13.04 (64-bit)

    Sorry to hijack the post. Im having the same problems though I did notice that the the nameservers data and dns-search are no longer being appended to the resolv.conf anymore. Im trying to find a work around, but would be grateful for anyone that has a fix for this?
    Try not to be a man of success but be a man of value
    Ubuntu Server setup guide
    setting up a DNS Server on Ubuntu

  3. #3
    Join Date
    May 2013

    Re: DNS resolving Ubuntu 13.04 (64-bit)

    I also have this problem. I found this thread which sounds like it might be the solution.
    I didn't have the chance to try it yet.
    Last edited by guusb; May 14th, 2013 at 12:50 PM.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts