DNS and dnsmasq - Ubuntu

This is a discussion on DNS and dnsmasq - Ubuntu ; Hello, i run dnsmasq on an openwrt-box under kamikaze 7.09. My desktop runs ubuntu 8.04 (since yesterday). dnsmasq act as a dhcp-server and as a dns-server. There was no problem under ubuntu 7.04, but dns seems not to work since ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: DNS and dnsmasq

  1. DNS and dnsmasq

    Hello,

    i run dnsmasq on an openwrt-box under kamikaze 7.09. My desktop runs ubuntu
    8.04 (since yesterday). dnsmasq act as a dhcp-server and as a dns-server.
    There was no problem under ubuntu 7.04, but dns seems not to work since i
    installed ubuntu 8.04. The name of my desktop was simply "ubuntu" under
    ubuntu 7.04 and is "ubuntu" under ubuntu 8.04. Using ubuntu 7.04 it was
    possible to do

    ping ubuntu.lan

    from any PC in the internal network. This does not work anymore. I get

    wolfgang@ubuntu:~$ ping ubuntu.lan
    PING ubuntu (127.0.1.1) 56(84) bytes of data.
    64 bytes from ubuntu (127.0.1.1): icmp_seq=1 ttl=64 time=0.043 ms

    from my desktop but from any other pc i get the message
    ping: cannot resove ubuntu.lan: Unknown host

    What has changed in the configuration of ubuntu 8.04?

    Thank you for any hint
    Wolfgang


  2. Re: DNS and dnsmasq

    Wolfgang Meiners illuminated alt.os.linux.ubuntu by typing:
    > Hello,
    >
    > i run dnsmasq on an openwrt-box under kamikaze 7.09. My desktop runs ubuntu
    > 8.04 (since yesterday). dnsmasq act as a dhcp-server and as a dns-server.
    > There was no problem under ubuntu 7.04, but dns seems not to work since i
    > installed ubuntu 8.04. The name of my desktop was simply "ubuntu" under
    > ubuntu 7.04 and is "ubuntu" under ubuntu 8.04. Using ubuntu 7.04 it was
    > possible to do
    >
    > ping ubuntu.lan
    >
    > from any PC in the internal network. This does not work anymore. I get
    >
    > wolfgang@ubuntu:~$ ping ubuntu.lan
    > PING ubuntu (127.0.1.1) 56(84) bytes of data.
    > 64 bytes from ubuntu (127.0.1.1): icmp_seq=1 ttl=64 time=0.043 ms
    >
    > from my desktop but from any other pc i get the message
    > ping: cannot resove ubuntu.lan: Unknown host
    >
    > What has changed in the configuration of ubuntu 8.04?
    >
    > Thank you for any hint
    > Wolfgang


    It's probably your /etc/hosts file.

    nm-applet seems to misconfigure it occasionally.

    To check open a terminal and type

    $ cat /etc/hosts

    You should see something like........

    127.0.0.1 localhost
    127.0.1.1 {machinename}.{domainname} {machinename}

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

    It's the bit at 127.0.1.1 that is the thing that is playing up. Make
    sure the {machinename} and {domainname} entries are correct for your
    network

    Assuming this is different, then edit it to suit.
    $ gksudo gedit /etc/hosts

    You'll probably need to restart networking and possibly samba

    $ sudo /etc/init.d/networking restart
    $ sudo /etc/init.d/samba restart

    Let us know if this doesn't work.

    --
    "So I rang up a local building firm, I said 'I want a skip outside my
    house.' He said 'I'm not stopping you.' ~ Tim Vine

  3. Re: DNS and dnsmasq

    Moog wrote:

    > Wolfgang Meiners illuminated alt.os.linux.ubuntu by typing:
    >> Hello,
    >>
    >> i run dnsmasq on an openwrt-box under kamikaze 7.09. My desktop runs
    >> ubuntu 8.04 (since yesterday). dnsmasq act as a dhcp-server and as a
    >> dns-server. There was no problem under ubuntu 7.04, but dns seems not to
    >> work since i installed ubuntu 8.04. The name of my desktop was simply
    >> "ubuntu" under ubuntu 7.04 and is "ubuntu" under ubuntu 8.04. Using
    >> ubuntu 7.04 it was possible to do
    >>
    >> ping ubuntu.lan
    >>
    >> from any PC in the internal network. This does not work anymore. I get
    >>
    >> wolfgang@ubuntu:~$ ping ubuntu.lan
    >> PING ubuntu (127.0.1.1) 56(84) bytes of data.
    >> 64 bytes from ubuntu (127.0.1.1): icmp_seq=1 ttl=64 time=0.043 ms
    >>
    >> from my desktop but from any other pc i get the message
    >> ping: cannot resove ubuntu.lan: Unknown host
    >>
    >> What has changed in the configuration of ubuntu 8.04?
    >>
    >> Thank you for any hint
    >> Wolfgang

    >
    > It's probably your /etc/hosts file.
    >
    > nm-applet seems to misconfigure it occasionally.
    >
    > To check open a terminal and type
    >
    > $ cat /etc/hosts
    >
    > You should see something like........
    >
    > 127.0.0.1 localhost
    > 127.0.1.1 {machinename}.{domainname} {machinename}


    I changed this line to

    127.0.0.1 ubuntu.lan ubuntu

    >
    > It's the bit at 127.0.1.1 that is the thing that is playing up. Make
    > sure the {machinename} and {domainname} entries are correct for your
    > network
    >
    > Assuming this is different, then edit it to suit.
    > $ gksudo gedit /etc/hosts
    >
    > You'll probably need to restart networking and possibly samba
    >
    > $ sudo /etc/init.d/networking restart


    .... and then, i got
    adminloc@ubuntu:~$ sudo /etc/init.d/networking restart
    [sudo] password for adminloc:
    * Reconfiguring network interfaces...
    Ignoring unknown interface eth0=eth0.

    [ OK ]
    adminloc@ubuntu:~$

    also rebooting the ubuntu-box did not change anything

    > $ sudo /etc/init.d/samba restart

    i dont use samba so i will not need this. Nevertheless, after rebooting this
    should be ok.

    >
    > Let us know if this doesn't work.
    >


    No. It doesn't work. Maybe

    adminloc@ubuntu:~$ ifconfig
    eth0 Link encap:Ethernet Hardware Adresse 00:10:dc:a1:f6:1a
    inet Adresse:192.168.1.174 Bcast:192.168.1.255
    Maske:255.255.255.0
    inet6-Adresse: fe80::210:dcff:fea1:f61a/64
    Gültigkeitsbereich:Verbindung
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
    RX packets:69 errors:0 dropped:0 overruns:0 frame:0
    TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
    Kollisionen:0 Sendewarteschlangenlänge:1000
    RX bytes:20213 (19.7 KB) TX bytes:16017 (15.6 KB)
    Interrupt:17 Basisadresse:0xec00

    lo Link encap:Lokale Schleife
    inet Adresse:127.0.0.1 Maske:255.0.0.0
    inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
    UP LOOPBACK RUNNING MTU:16436 Metrik:1
    RX packets:1516 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1516 errors:0 dropped:0 overruns:0 carrier:0
    Kollisionen:0 Sendewarteschlangenlänge:0
    RX bytes:75840 (74.0 KB) TX bytes:75840 (74.0 KB)

    adminloc@ubuntu:~$

    shows, there must be some other errors. But i dont know, how to find them.

    Thank you for helping
    Wolfgang



  4. Re: DNS and dnsmasq

    I think, something is wrong with my network setup. But i have no idea how to
    figure out what has to be done. In /var/log/messages i found the lines

    Jul 7 10:32:40 ubuntu kernel: [ 61.747888] eth0: Media Link On 100mbps
    full-duplex
    Jul 7 10:32:40 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.reason
    Jul 7 10:32:42 ubuntu kernel: [ 63.951650] NET: Registered protocol
    family 17
    Jul 7 10:32:45 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.host_name
    Jul 7 10:32:45 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.nis_domain
    Jul 7 10:32:45 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.nis_servers
    Jul 7 10:32:45 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.interface_mtu
    Jul 7 10:44:06 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.host_name
    Jul 7 10:44:06 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.nis_domain
    Jul 7 10:44:06 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.nis_servers
    Jul 7 10:44:06 ubuntu dhcdbd: message_handler: message handler not found
    under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.interface_mtu
    adminloc@ubuntu:~$

    and ifconfig eth0 gives

    adminloc@ubuntu:~$ ifconfig eth0
    eth0 Link encap:Ethernet Hardware Adresse 00:10:dc:a1:f6:1a
    inet Adresse:192.168.1.174 Bcast:192.168.1.255
    Maske:255.255.255.0
    inet6-Adresse: fe80::210:dcff:fea1:f61a/64
    Gültigkeitsbereich:Verbindung
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
    RX packets:58 errors:0 dropped:0 overruns:0 frame:0
    TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
    Kollisionen:0 Sendewarteschlangenlänge:1000
    RX bytes:13983 (13.6 KB) TX bytes:30453 (29.7 KB)
    Interrupt:17 Basisadresse:0xec00

    adminloc@ubuntu:~$

    if i try to do ifdown eth0 ifup eth0 i get the messages:

    adminloc@ubuntu:~$ sudo ifdown eth0
    [sudo] password for adminloc:
    ifdown: interface eth0 not configured
    adminloc@ubuntu:~$ sudo ifup eth0
    Ignoring unknown interface eth0=eth0.
    adminloc@ubuntu:~$

    Any ideas what might be wrong here?

    Thank you for any hints
    Wolfgang

  5. Re: DNS and dnsmasq

    Wolfgang Meiners illuminated alt.os.linux.ubuntu by typing:


    > Ignoring unknown interface eth0=eth0.


    Crapola....

    What network card have you got?
    Open a terminal and type

    $ sudo lspci | grep Ethernet
    The output should tell you what card you're using.

    This command
    $ sudo lshw -C network
    Will tell you a little more information

    You'll probably get a network=UNCLAIMED entry relating to your card.

    I'm hazarding a guess that you have an Attansic device.

    This thread may help
    http://ubuntuforums.org/showthread.php?t=770173

    --
    "My mother was like a sister to me, only we didn't have sex quite so
    often." ~ Emo Philips

  6. Re: DNS and dnsmasq

    Hello Moog,

    Moog wrote:

    > Wolfgang Meiners illuminated alt.os.linux.ubuntu by typing:
    >
    >
    >> Ignoring unknown interface eth0=eth0.

    >
    > Crapola....


    I think, there was something misconfigured in the automatic network
    configuration. It dissapeared after changeing in /etc/hosts the line

    127.0.1.1 ubuntu.lan ubuntu
    to
    127.0.0.1 ubuntu.lan ubuntu

    and additionally unchecking the checkbox "Roaming-Modus aktivieren" (i think
    something like "activate roaming-modus" in english) in the network
    configuration. At this point i unplugged the powercable of both the
    ubuntu-box and the openwrt-box and after restarting the next day, all
    problems had disappeared.

    >
    > What network card have you got?
    > Open a terminal and type
    >
    > $ sudo lspci | grep Ethernet
    > The output should tell you what card you're using.
    >


    To be precise:
    adminloc@ubuntu:~$ sudo lspci | grep Ethernet
    [sudo] password for adminloc:
    00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI
    Fast Ethernet (rev 91)
    adminloc@ubuntu:~$

    I think there were -maybe are- two problems, one concerning the ubuntu-box
    and one concerning the openwrt-box. Kamikaze 7.09, the actual openwrt
    linux, has some problems with network. They are related to port forwarding
    and are discussed in the openwrt forum. With this problems it is necessary
    to unplug the openwrt-box, rebooting does not help.

    At the moment, all problems seem to have gone

    Thank you for your helping
    Wolfgang


  7. Re: DNS and dnsmasq

    Wolfgang Meiners illuminated alt.os.linux.ubuntu by typing:

    >
    > At the moment, all problems seem to have gone


    Thank the lord.

    > Thank you for your helping


    No problem, Wolfgang. I'm glad ou have had some success.

    --
    "I ran three miles today. Finally I said, "Lady take your purse." ~ Emo
    Philips

+ Reply to Thread