LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 03-01-2010, 04:51 PM   #1
mustaghattack
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
DNSMasq - dnslookup build.domain.local works but ping build.domain.local doesnt


Hi,

I've got DNSMasq running on machine 192.168.1.1, configured as follow :
Code:
domain=mydomain.local
dhcp-option=lan,3,192.168.1.1
dhcp-authoritative
dhcp-range=lan,192.168.1.100,192.168.1.179,255.255.255.0,0m
dhcp-host=00:19:21:ea:a5:16,build,192.168.1.150,infinite
expand-hosts
Notice the static lease for the build machine.

On my machine (XUbuntu 9.10, IP:192.168.1.134) I have /etc/resolv.conf set by DHCP :
Code:
# Generated by NetworkManager
domain mydomain.local
search mydomain.local
nameserver 192.168.1.1
Still on my machine I execute the following commands :
Code:
$ ping build
PING build.mydomain.local (192.168.1.150) 56(84) bytes of data.
64 bytes from build.mydomain.local (192.168.1.150): icmp_seq=1 ttl=64 time=8.43 ms
Code:
$ nslookup build.mydomain.local
Server:		192.168.1.1
Address:	192.168.1.1#53

Name:	build.mydomain.local
Address: 192.168.1.150
Code:
$ ping build.mydomain.local
ping: unknown host build.mydomain.com
Why does the last ping fails ??

Thanks, Bruno
 
Old 03-01-2010, 06:39 PM   #2
mustaghattack
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Works on windows

On windows machines, if I ping build.mydomain.local it works ...
 
Old 03-01-2010, 09:00 PM   #3
mustaghattack
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
mDNS

I've figured out what the problem was ...

Ubuntu comes with avahi. Avahi is a mDNS server. When trying to resolv hosts ending with .local it uses mDNS instead of DNS. mDNS fails.

If I stop avahi, everything works fine ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
local domain versus official domain in POSTFIX lucmohamed Linux - Server 1 04-14-2008 06:06 AM
Setup BIND for Local Domain and hosting domain ALInux Linux - Networking 4 12-19-2006 02:26 AM
passwd: can't get local yp domain: Local domain name not set powah Linux - Security 4 06-08-2006 09:59 AM
How to build a local repository with apt (RH 9) ? hadding Red Hat 3 10-27-2003 12:36 AM
want to build a secondary server in the same domain casanovaa9 Linux - Networking 2 07-09-2002 03:40 AM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration