Announcement

Collapse
No announcement yet.

[SOLVED] Name resolving problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Name resolving problem

    I installed Kubuntu 11.10 and have some problem with name resolution.

    I receive IP with DHCP.
    My /var/lib/dhcp/dhcp.leases is like following
    Code:
    lease {                                                                                                                   
     interface "eth0";                                                                                                             
     fixed-address 10.1.1.12;                                                                                                         
     option subnet-mask 255.255.255.0;                                                                                                     
     option dhcp-lease-time 864000;                                                                                                       
     option dhcp-message-type 5;                                                                                                        
     option domain-name-servers 10.1.1.1,10.1.1.2;                                                                                            
     option dhcp-server-identifier 10.1.1.3;                                                                                                 
     option dhcp-renewal-time 432000;                                                                                                      
     option dhcp-rebinding-time 756000;                                                                                                     
     option netbios-name-servers 10.1.1.1;                                                                                                  
     option domain-name "dom.local";                                                                                                      
     renew 1 2011/11/21 01:00:03;                                                                                                        
     rebind 5 2011/11/25 07:06:28;                                                                                                       
     expire 6 2011/11/26 13:06:28;                                                                                                       
    }
    My /etc/resolv.conf:
    Code:
    # Generated by NetworkManager
    domain dom.local
    search dom.local
    nameserver 10.1.1.1
    nameserver 10.1.1.2
    If I ping another host in same domain all works fine

    Code:
    root@ws1:~# ping ws2
    PING ws4.dom.local (10.1.1.15) 56(84) bytes of data.
    64 bytes from ws4.dom.local (10.1.1.15): icmp_req=1 ttl=128 time=0.988 ms
    64 bytes from ws4.dom.local (10.1.1.15): icmp_req=2 ttl=128 time=0.250 ms
    64 bytes from ws4.dom.local (10.1.1.15): icmp_req=3 ttl=128 time=0.242 ms
    64 bytes from ws4.dom.local (10.1.1.15): icmp_req=4 ttl=128 time=0.258 ms
    ^C
    ---ws4.dom.local ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3000ms
    rtt min/avg/max/mdev = 0.242/0.434/0.988/0.320 ms
    But if I use ping with FQDN I get a following error
    Code:
    root@ws1:~# ping ws1.dom.local
    ping: unknown host ws1.dom.local
    root@ws1:~#
    Nslookup works correctly
    Code:
    root@ws1:~# nslookup ws4.dom.local
    Server:     10.1.1.1
    Address:    10.1.1.1#53
    
    Name:  ws4.dom.local
    Address: 10.1.1.15
    
    root@ws1:~#
    Any suggestions

    #2
    Re: Name resolving problem

    I found solution.

    /etc/nsswitch.com
    Change
    Code:
    hosts:     files mdns4_minimal [NOTFOUND=return] dns mdns4
    to
    Code:
    hosts:     files dns mdns4_minimal [NOTFOUND=return] mdns4
    Sorry

    Comment


      #3
      Re: [SOLVED] Name resolving problem

      Please do not be sorry, I am sure that there will be someone else who will need precisely this information and you have provided it!

      woodsmoke

      Comment

      Working...
      X