[opensuse] opensuse 11.3 DNS not working
Hi, I have a DNS server setup on a desktop machine thatis also my print and SAMBA servers. The DNS server is responding but Wireshark is reporting a DNS Server Error as the replies to what appear to be the DNS queries. **** WireShark output **** No. Time Source Destination Protocol Info 69 7.811350 192.168.0.50 192.168.0.12 DNS Standard query A samhaber2.sampathome.ca Frame 69: 83 bytes on wire (664 bits), 83 bytes captured (664 bits) Ethernet II, Src: Ibm_13:63:8a (00:11:25:13:63:8a), Dst: D-Link_07:7d:d3 (00:05:5d:07:7d:d3) Internet Protocol, Src: 192.168.0.50 (192.168.0.50), Dst: 192.168.0.12 (192.168.0.12) User Datagram Protocol, Src Port: 41883 (41883), Dst Port: domain (53) Domain Name System (query) [Response In: 70] Transaction ID: 0x0c06 Flags: 0x0100 (Standard query) Questions: 1 Answer RRs: 0 Authority RRs: 0 Additional RRs: 0 Queries No. Time Source Destination Protocol Info 70 7.811845 192.168.0.12 192.168.0.50 DNS Standard query response, Server failure Frame 70: 83 bytes on wire (664 bits), 83 bytes captured (664 bits) Ethernet II, Src: D-Link_07:7d:d3 (00:05:5d:07:7d:d3), Dst: Ibm_13:63:8a (00:11:25:13:63:8a) Internet Protocol, Src: 192.168.0.12 (192.168.0.12), Dst: 192.168.0.50 (192.168.0.50) User Datagram Protocol, Src Port: domain (53), Dst Port: 41883 (41883) Domain Name System (response) [Request In: 69] [Time: 0.000495000 seconds] Transaction ID: 0x0c06 Flags: 0x8182 (Standard query response, Server failure) Questions: 1 Answer RRs: 0 Authority RRs: 0 Additional RRs: 0 Queries *** End of WireShark output *** Also, very interesting is that I thought the DNS deamon was dnsmasq but when I turned that off in the Services menu I expected to get no response or at least something different but it is exactly the same Network traffic. Logically I sohuld conclude that the process 'dnsmasq' is not the DNS server process as indicated by the man page. DNSMASQ(8) DNSMASQ(8) NAME dnsmasq - A lightweight DHCP and caching DNS server. SYNOPSIS dnsmasq [OPTION]... DESCRIPTION dnsmasq is a lightweight DNS, TFTP and DHCP server. It is intended to provide coupled DNS and DHCP service to a LAN. Where does the 'dnsmasq' command line get run from? I would like to review the commadn line and possibly turn on the logging. Does anyone have the DNS server working in OpenSUSE 11.3? Does anyone have the SAMBA server working in OpenSUSE 11.3? Thank you, Bruce -- Bruce Samhaber Tel/Fax: 613-724-5987 112 Kenora St. Cell: 613-297-6961 Ottawa, Ontario K1Y 3L1 mailto: bruce.samhaber@samhaber.ca http://www.samhaber.ca -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bruce Samhaber wrote:
Where does the 'dnsmasq' command line get run from? I would like to review the commadn line and possibly turn on the logging.
Try this: grep dnsmasq /etc/init.d/*
Does anyone have the DNS server working in OpenSUSE 11.3?
Sure, bind works fine.
Does anyone have the SAMBA server working in OpenSUSE 11.3?
11.0 and 10.3 for the moment. -- Per Jessen, Zürich (19.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, Sep 29, 2011 at 11:41 AM, Per Jessen <per@opensuse.org> wrote:
Bruce Samhaber wrote:
Where does the 'dnsmasq' command line get run from? I would like to review the commadn line and possibly turn on the logging.
Try this:
grep dnsmasq /etc/init.d/*
Does anyone have the DNS server working in OpenSUSE 11.3?
Sure, bind works fine.
Does anyone have the SAMBA server working in OpenSUSE 11.3?
11.0 and 10.3 for the moment.
-- Per Jessen, Zürich (19.2°C)
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Make sure AppArmor isn't running too. I had to remove a file under /etc/apparmor.d -- (678) 636-9678 ----------------------------------------- Discover it! Enjoy it! Share it! openSUSE Linux. ----------------------------------------- openSUSE -- en.opensuse.org/User:Terrorpup openSUSE Ambassador/openSUSE Member skype,twiiter,identica,friendfeed -- terrorpup freenode(irc) --terrorpup/lupinstein Register Linux Userid: 155363 Have you tried SUSE Studio? Need to create a Live CD, an app you want to package and distribute , or create your own linux distro. Give SUSE Studio a try. www.susestudio.com. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bruce Samhaber wrote:
Where does the 'dnsmasq' command line get run from? I would like to review the commadn line and possibly turn on the logging.
Does anyone have the DNS server working in OpenSUSE 11.3?
Does anyone have the SAMBA server working in OpenSUSE 11.3?
I have dnsmasq running on my home network (11.3) and soon at work (11.4). It works very well. I also have Samba running on the server at work that will be running dnsmasq and on just about every computer at home, other than the one that runs dnsmasq. Dnsmasq is a "service" which means it's controlled through Yast > System Services. You can also use the command (as root) "rcdnsmasq start|stop|restart". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, Thank you for your responses, now at least I know it is still worth trying to get it working. What does named do with the dns function? Is it supposed to be running when dnsmasq is running? dnsmasq is currently not running and does not want to start with either System Services or the command line, see below for error message. samhaber2:/var/log/samba # grep dnsmasq /etc/init.d/* /etc/init.d/dnsmasq:# init.d/dnsmasq /etc/init.d/dnsmasq:# Provides: dnsmasq /etc/init.d/dnsmasq:NAMED_BIN=/usr/sbin/dnsmasq /etc/init.d/dnsmasq:NAMED_PID=/var/run/dnsmasq.pid /etc/init.d/dnsmasq:NAMED_CONF=/etc/dnsmasq.conf /etc/init.d/dnsmasq: echo -n "dnsmasq not installed! " /etc/init.d/dnsmasq: if grep "^[^#].*/etc/ppp/" /etc/dnsmasq.conf
/dev/null 2>&1; then /etc/init.d/dnsmasq: echo "Warning! dnsmasq can not read the /etc/ppp directory anymore"; /etc/init.d/dnsmasq: echo " use /var/run/ instead like /var/run/dnsmasq-forwarders.conf"; /etc/init.d/dnsmasq: echo -n "- Warning: dnsmasq already running! " /etc/init.d/dnsmasq: startproc -p $NAMED_PID $NAMED_BIN -u dnsmasq /etc/init.d/dnsmasq: [ $? -ne 0 ] && echo -n "- Warning: dnsmasq not running! " s
samhaber2:/var/log/samba # rcdnsmasq start Starting name service masq caching server dnsmasq: failed to create listening socket: Address already in use startproc: exit status of parent of /usr/sbin/dnsmasq: 2 Bruce On Thursday 29 September 2011 13:43:28 James Knott wrote:
Bruce Samhaber wrote:
Where does the 'dnsmasq' command line get run from? I would like to review the commadn line and possibly turn on the logging.
Does anyone have the DNS server working in OpenSUSE 11.3?
Does anyone have the SAMBA server working in OpenSUSE 11.3?
I have dnsmasq running on my home network (11.3) and soon at work (11.4). It works very well. I also have Samba running on the server at work that will be running dnsmasq and on just about every computer at home, other than the one that runs dnsmasq. Dnsmasq is a "service" which means it's controlled through Yast > System Services. You can also use the command (as root) "rcdnsmasq start|stop|restart".
-- Bruce Samhaber Tel/Fax: 613-724-5987 112 Kenora St. Cell: 613-297-6961 Ottawa, Ontario K1Y 3L1 mailto: bruce.samhaber@samhaber.ca http://www.samhaber.ca -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bruce Samhaber wrote:
Hi,
Thank you for your responses, now at least I know it is still worth trying to get it working.
What does named do with the dns function? Is it supposed to be running when dnsmasq is running?
named is from BIND, it is the name server daemon. I doubt there is much point in running both named and dnsmasq.
dnsmasq is currently not running and does not want to start with either System Services or the command line
Good. (unless you want it). -- Per Jessen, Zürich (14.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Which DNS server deamon should I be running, or rather does the configuration tools setup? I thought that it was dnsmasq but since the /etc/dnsmasq.conf file has nothing configured in it then it probably should be the named that gets configured. The /etc/named.conf was modified on 2011-09-27 14:07 So now I need to debug why the named is responding with an error to the dns requests, and why KDE freezes up with the CPU at 99.0%wa reported from top. Thank you, Bruce. On Thursday 29 September 2011 16:01:48 Per Jessen wrote:
Bruce Samhaber wrote:
Hi,
Thank you for your responses, now at least I know it is still worth trying to get it working.
What does named do with the dns function? Is it supposed to be running when dnsmasq is running?
named is from BIND, it is the name server daemon. I doubt there is much point in running both named and dnsmasq.
dnsmasq is currently not running and does not want to start with either System Services or the command line
Good. (unless you want it).
-- Bruce Samhaber Tel/Fax: 613-724-5987 112 Kenora St. Cell: 613-297-6961 Ottawa, Ontario K1Y 3L1 mailto: bruce.samhaber@samhaber.ca http://www.samhaber.ca -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bruce Samhaber wrote:
Which DNS server deamon should I be running, or rather does the configuration tools setup? If you're using dnsmasq, you don't want any other DNS server running. Dnsmasq is not configured in Yast, it has it's own text file for configuration.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bruce Samhaber wrote:
Which DNS server deamon should I be running, or rather does the configuration tools setup?
You don't have to run any DNS server unless you've decided you want one.
I thought that it was dnsmasq but since the /etc/dnsmasq.conf file has nothing configured in it then it probably should be the named that gets configured. The /etc/named.conf was modified on 2011-09-27 14:07
So now I need to debug why the named is responding with an error to the dns requests,
1) do you need/want a name server? 2a) if yes, and assuming named is running, please post a) output from 'dig opensuse.org' b) output from 'dig <one of your zones>' 2b) if no, then stop named and forget it. Make sure your /etc/resolv.conf points to your providers nameservers. -- Per Jessen, Zürich (15.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 30 September 2011 01:59:24 Per Jessen wrote:
Bruce Samhaber wrote:
Which DNS server deamon should I be running, or rather does the configuration tools setup?
You don't have to run any DNS server unless you've decided you want one.
I thought that it was dnsmasq but since the /etc/dnsmasq.conf file has nothing configured in it then it probably should be the named that gets configured. The /etc/named.conf was modified on 2011-09-27 14:07
So now I need to debug why the named is responding with an error to the dns requests,
1) do you need/want a name server? 2a) if yes, and assuming named is running, please post
a) output from 'dig opensuse.org'
bruce@samhaber2:~> dig opensuse.org ; <<>> DiG 9.7.3-P3 <<>> opensuse.org ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54043 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2 ;; QUESTION SECTION: ;opensuse.org. IN A ;; ANSWER SECTION: opensuse.org. 565 IN A 130.57.5.70 ;; AUTHORITY SECTION: opensuse.org. 565 IN NS ns.novell.com. opensuse.org. 565 IN NS ns.novell.co.uk. opensuse.org. 565 IN NS ns2.novell.com. ;; ADDITIONAL SECTION: ns.novell.co.uk. 1735 IN A 130.57.40.66 ns2.novell.com. 36935 IN A 137.65.1.2 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Oct 21 10:20:09 2011 ;; MSG SIZE rcvd: 152
b) output from 'dig <one of your zones>'
sampathome.ca is the internal zone on my side of the firewall that I defined. It is not registered anywhere. The reason that I want to have a DNS server is that I have many machines in my network that could be turned on sometimes but not always. THe DNS server would just need to be configured rather than update hosts files whenever a machine is added. My Dlink router is the DHCP server so it handles which ever devices that I do not want to remotely access with fixed IPs. bruce@samhaber2:~> dig sampathome.ca ; <<>> DiG 9.7.3-P3 <<>> sampathome.ca ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 39535 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;sampathome.ca. IN A ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Oct 21 10:20:57 2011 ;; MSG SIZE rcvd: 31 samhaber.ca is a registered domain name outside of my firewall. bruce@samhaber2:~> dig samhaber.ca ; <<>> DiG 9.7.3-P3 <<>> samhaber.ca ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5906 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;samhaber.ca. IN A ;; ANSWER SECTION: samhaber.ca. 14400 IN A 72.55.186.64 ;; AUTHORITY SECTION: samhaber.ca. 63765 IN NS ns2.panelboxmanager.com. samhaber.ca. 63765 IN NS ns1.panelboxmanager.com. ;; Query time: 60 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Oct 21 10:21:48 2011 ;; MSG SIZE rcvd: 100
2b) if no, then stop named and forget it. Make sure your /etc/resolv.conf points to your providers nameservers.
-- Bruce Samhaber 112 Kenora St., Ottawa, Ontario K1Y 3L1 Cell: 613-297-6961 Tel/Fax: 613-724-5987 mailto: bruce.samhaber@samhaber.ca http://www.samhaber.ca -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bruce Samhaber wrote:
1) do you need/want a name server? 2a) if yes, and assuming named is running, please post
a) output from 'dig opensuse.org'
bruce@samhaber2:~> dig opensuse.org
[snip working response]
b) output from 'dig <one of your zones>'
sampathome.ca is the internal zone on my side of the firewall that I defined. It is not registered anywhere. The reason that I want to have a DNS server is that I have many machines in my network that could be turned on sometimes but not always. THe DNS server would just need to be configured rather than update hosts files whenever a machine is added. My Dlink router is the DHCP server so it handles which ever devices that I do not want to remotely access with fixed IPs.
bruce@samhaber2:~> dig sampathome.ca
; <<>> DiG 9.7.3-P3 <<>> sampathome.ca ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 39535 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: ;sampathome.ca. IN A
Okay, so your local zone isn't properly configured. -- Per Jessen, Zürich (7.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2011-10-21 at 10:56 -0400, Bruce Samhaber wrote:
b) output from 'dig <one of your zones>'
sampathome.ca is the internal zone on my side of the firewall that I defined. It is not registered anywhere.
If it is not registered, it should not be named .ca (nor .com, nor anything that exists). - -- Cheers, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk6n+Q4ACgkQtTMYHG2NR9X6/gCdE20EAEyzZr4OA+3oPCn+u678 gEkAoIZaXNKPhayE8sS6z6TVeePweliw =MdMD -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
On Friday, 2011-10-21 at 10:56 -0400, Bruce Samhaber wrote:
sampathome.ca is the internal zone on my side of the firewall that I defined. It is not registered anywhere.
If it is not registered, it should not be named .ca (nor .com, nor anything that exists).
You can use anything. For example: sampathome.local sampathome.internal -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Bruce Samhaber
-
Carlos E. R.
-
Chuck Payne
-
Dave Howorth
-
James Knott
-
Per Jessen