Re: [Hampshire] Ubuntu Network Manager and local DNS zone not playing nice?

2011-04-25 Thread Imran Chaudhry
> This fact may be related as the .local domain is used (reserved?) for
> Avahi and mDNS.
>
> On Fedora, my /etc/nsswitch.conf file has the following:
>
> hosts:      files mdns4_minimal [NOTFOUND=return] dns
>
> I expect Ubuntu's is very similar, so if the mdns lookup fails the
> entire host lookup will also fail.  You could probably move
> mdns4_minimal to the end of the line, so your DNS takes precedence:
>
> hosts:      files dns mdns4_minimal
>
> This might affect Avahi though, but if you don't care about it just
> remove or disable the Avahi services entirely.
>
> Or the best solution might be to change your internal domain sooner
> rather than later!  There are a few domains and TLDs reserved for
> internal use:
>
> http://tools.ietf.org/html/rfc2606#page-2

Thanks very much Dominic, this must be it.

I set-up a .bogus domain which worked as expected, I then scooped out
all the .bogus bits and replaced with .local and it still didn't work.
As you say, .local must be reserved. I thought it must be something
specific to the client.

I have now decided to use one of my .net domains for internal. I had
been advised against making my own up since a ICANN are planning to
create many new gTLDs in the future:
http://www.icann.org/en/topics/new-gtld-program.htm

The next challenge for me is configuring the domain to point to my own
nameservers, which looks a bit fiddly with GoDaddy.

-- 
GPG Key fingerprint = B323 477E F6AB 4181 9C65  F637 BC5F 7FCC 9CC9 CC7F

“Live as if you were to die tomorrow. Learn as if you were to live
forever.” - Indian political and spiritual leader Mahatma Gandhi
(1869-1948)

--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] Ubuntu Network Manager and local DNS zone not playing nice?

2011-04-23 Thread Dominic Cleal
On 22/04/11 00:11, Imran Chaudhry wrote:
> My problem is that while I can ping by hostname...
> 
> $ ping xenserver
> PING xenserver.imran.local (192.168.98.30) 56(84) bytes of data.
> 64 bytes from xenserver.imran.local (192.168.98.30): icmp_seq=1 ttl=64
> time=4.12 ms
> 
> ...which I would expect to work given my search domain.
> 
> I cannot ping by FQDN:
> $ ping xenserver.imran.local
> ping: unknown host xenserver.imran.local
> 
> $ cat /etc/resolv.conf
> # Generated by NetworkManager
> search imran.local
> nameserver 192.168.98.3
> 
> 192.168.98.3 is Debian Squeeze running bind9.
> 
> What is going on? I suspect NetworkManager as this works OK
> from another standard Debian server on my network configured to use
> 192.168.98.3 as DNS.
[ snip ]
> [1] Yeah, I know it's probably not good to make up your own TLDs, I
> plan to use a .net domain in future.

This fact may be related as the .local domain is used (reserved?) for
Avahi and mDNS.

On Fedora, my /etc/nsswitch.conf file has the following:

hosts:  files mdns4_minimal [NOTFOUND=return] dns

I expect Ubuntu's is very similar, so if the mdns lookup fails the
entire host lookup will also fail.  You could probably move
mdns4_minimal to the end of the line, so your DNS takes precedence:

hosts:  files dns mdns4_minimal

This might affect Avahi though, but if you don't care about it just
remove or disable the Avahi services entirely.

Or the best solution might be to change your internal domain sooner
rather than later!  There are a few domains and TLDs reserved for
internal use:

http://tools.ietf.org/html/rfc2606#page-2

-- 
Dominic Cleal
domi...@computerkb.co.uk

--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


[Hampshire] Ubuntu Network Manager and local DNS zone not playing nice?

2011-04-21 Thread Imran Chaudhry
I've configured a private DNS zone imran.local [1] on my LAN, I'm
using bind9 on Debian Squeeze.

The problem is that while servers on the network will resolve and ping
hosts in the private zone fine, the desktops (Ubuntu Lucid Lynx) do
not when using a FQDN.

$ dig xenserver.imran.local
;; QUESTION SECTION:
;xenserver.imran.local.         IN      A

;; ANSWER SECTION:
xenserver.imran.local.  86400   IN      A       192.168.98.30

My problem is that while I can ping by hostname...

$ ping xenserver
PING xenserver.imran.local (192.168.98.30) 56(84) bytes of data.
64 bytes from xenserver.imran.local (192.168.98.30): icmp_seq=1 ttl=64
time=4.12 ms
64 bytes from xenserver.imran.local (192.168.98.30): icmp_seq=2 ttl=64
time=0.245 ms
64 bytes from xenserver.imran.local (192.168.98.30): icmp_seq=3 ttl=64
time=0.245 ms

...which I would expect to work given my search domain.

I cannot ping by FQDN:
$ ping xenserver.imran.local
ping: unknown host xenserver.imran.local

$ cat /etc/resolv.conf
# Generated by NetworkManager
search imran.local
nameserver 192.168.98.3

192.168.98.3 is Debian Squeeze running bind9.

What is going on? I suspect NetworkManager as this works OK
from another standard Debian server on my network configured to use
192.168.98.3 as DNS.

One other thing to mention is that I had dnsmasq running. I think was
installed with convirt package? Anyhow, I purged that package but that
did not fix it.

[1] Yeah, I know it's probably not good to make up your own TLDs, I
plan to use a .net domain in future.
--
GPG Key fingerprint = B323 477E F6AB 4181 9C65  F637 BC5F 7FCC 9CC9 CC7F

“Live as if you were to die tomorrow. Learn as if you were to live
forever.” - Indian political and spiritual leader Mahatma Gandhi
(1869-1948)



-- 
GPG Key fingerprint = B323 477E F6AB 4181 9C65  F637 BC5F 7FCC 9CC9 CC7F

“Live as if you were to die tomorrow. Learn as if you were to live
forever.” - Indian political and spiritual leader Mahatma Gandhi
(1869-1948)

--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--