[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: annoying domain.local issue

>> And does that DNS server have an answer for queries to that domain name?
>> If it does, does it have the right answer?

Valent Turkovic:
> ping doesn't work from Fedora;
> # ping web.iskon.local
> ping: unknown host web.iskon.local
> # ping samba.iskon.local
> ping: unknown host web.iskon.local

That would appear to suggest that you don't have anything to tell your
machine how to use those addresses.  No hosts file entries, no DNS
records.  Unless, you do have a DNS server with that information, but
you're querying another one that doesn't.

>> I'd suggest posting your hosts, nsswitch.conf, resolv.conf and smb.conf
>> files for others to see what you're doing, rather than guess.  Also the
>> outputs from running nslookup and dig with your problem domain name.

> Here is mine nsswitch.conf :
> http://fpaste.org/paste/10360

The important line from that is this:

hosts:      files mdns4_minimal [NOTFOUND=return] dns

Which, if I've understood the bit in the middle does:
1. "files" first look in /etc/hosts, then try
2. "mdns4_minimal", and if no answer is found, abort
without getting around to querying a "DNS" server.

This doesn't seem sensible to me.

Unless you have something special, usually all that's needed is:

hosts:      files dns

If mdns4... is doing something useful for you, perhaps try just removing
the notfound=return section.

> hosts :
> http://fpaste.org/paste/10361

Pretty much a normal file.  It defines local loopback addresses (how the
machine refers to itself, the computer equivalent of "myself").  It's
expected that something else will resolve other addresses, such as your
DNS server.

> resolv.conf :
> http://fpaste.org/paste/10362

Again, looking normal, presuming that there are DNS servers you can
query at and

> $ dig web.domain.local
> ; <<>> DiG 9.5.1-P2-RedHat-9.5.1-2.P2.fc10 <<>> web.domain.local
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53744
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
> ;web.domain.local.		IN	A
> web.domain.local.	1200	IN	A
> ;; Query time: 5 msec
> ;; SERVER:
> ;; WHEN: Tue Apr 28 14:18:17 2009
> ;; MSG SIZE  rcvd: 49

This indicates that a DNS server at says that web.domain.local
has a numerical IP address of

> $ nslookup web.domain.local
> Server:
> Address:
> Name:	web.domain.local
> Address:

Same as above, with the dig query.

> $ host
> domain name pointer web.domain.local.

And again.

> But I can't ping web.domain.local :(

That could be a firewall issue, but you'd not expect a comment about
unknown host, if it simply couldn't ping something it had an address

> And typing http://web.domain.local in Firefox doesn't open the web
> page, but typing IP it does. If I type in Firefox I get the
> home page.

Check if both your domain servers can answer that query.  Use the dig
command, with the address for each name server.

e.g. dig web.domain.local @
     and, dig web.domain.local @

If they both get answers like above, then both domain name servers are

> As I mentioned I also have Winwdows in VirtualBox VM and there
> everything works ok - ping works and also Firefox opens
> web.domain.local without problems.

Windows can muddy the waters, as it can try other things to try and
resolve names, as well.  Windows networking (SMB) for instance can find
machines without DNS or hostnames (essentially asking for a machine by
name, and hoping that it answers for itself, or another machine on the
SMB network gives it the address for it).

> When I enter in my hosts file this line:
>    web.domain.local
> then I can ping the web server from my Fedora laptop... any ideas?

See if the comment I made about modifying your /etc/nsswitch.conf file
makes any difference.  Everything else, configuration-wise, seems

[tim localhost ~]$ uname -r

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]