bind issue

Hello,

I’m trying to get a bind server up and running on my opensuse installation but I’m having some slight problems, I’ve been looking for a solution to what is probably a silly problem for quite a while so I decided to come here.

You can find the config files underneath.

named.conf

zone "metropolia.local" in{
        type master;
        file "metropolia.zone";
};

zone file

$TTL 86400      ; max TTL
$ORIGIN metropolia.local.
@       IN      SOA     unix.sixbone.com. root.sixbone.com. (
                        2010040701
                        28800
                        7200
                        604800
                        3600 )
@               IN      A       192.168.0.152
@               IN      NS      dns.metropolia.local.
@               IN      MX      10      mail.metropolia.local.
www             IN      CNAME   metropolia.local.
                IN      CNAME   metropolia.local.

resolv.conf

search metropolia.local
nameserver 192.168.0.152

#search dhcp.inet.fi
#nameserver 192.168.0.152
#nameserver 192.89.123.231
#nameserver 192.168.0.1

output of dig commando

; <<>> DiG 9.6.1-P3 <<>> metropolia.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36512
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;metropolia.local.              IN      A

;; ANSWER SECTION:
metropolia.local.       86400   IN      A       192.168.0.152

;; AUTHORITY SECTION:
metropolia.local.       86400   IN      NS      metropolia.local.

;; Query time: 0 msec
;; SERVER: 192.168.0.152#53(192.168.0.152)
;; WHEN: Wed Apr  7 18:13:07 2010
;; MSG SIZE  rcvd: 64

The thing is that the correct nameserver and ip-address gets found, but whenever I try to ping to metropolia.local the system tells me that it is an unknown host.

Thanks in advance,

  • Frederik

Don’t use local as a top level domain. It has special meaning to mDNS and gets interfered with because of that. There are heaps of other invented top level domains you can use. For instance, I use my own surname.

On Wed April 7 2010 10:36 am, ken yap wrote:

>
> Don’t use local as a top level domain. It has special meaning to mDNS
> and gets interfered with because of that. There are heaps of other
> invented top level domains you can use. For instance, I use my own
> surname.
>
>
StonedH;

If you are really stuck with .local add the following line to /etc/host.conf.


mdns off

See “man host.conf” or “info host.conf” for details.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Thank you both for your replies, this helped.