LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-20-2010, 05:07 AM   #1
tiuz
Member
 
Registered: Mar 2006
Distribution: Slackware 14
Posts: 92

Rep: Reputation: 15
DNS not working with short hostnames


Hello,

I have changed some settings on my DNS / DHCP config under Debian Lenny, and now when i try to ping some box it only works with long names. For example:

ping borsti doesn´t work (can not find host) but if i use ping borsti.borsti.iss it works. I have no idea why it doesn´t work because i only modified the dnssec-key (created a new key) and nothing else in te config Here is the config i used for bind: (taken from named.conf.options and named.conf.local)

options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forward only;
listen-on { localhost;
};
forwarders {
195.34.133.21;
195.34.133.22;
};
allow-query { 192.168.0.0/24; localhost; };
allow-recursion { 192.168.0.0/24; localhost; };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
notify no;
};

controls {
inet 127.0.0.1 port 953
allow { 192.168.0.1; 127.0.0.1; } keys { DHCP; };
};

key DHCP {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret
};

zone "borsti.iss" {
type master;
file "/var/cache/bind/db.borsti.iss";
allow-query { 192.168.0.0/24; };
notify yes;
allow-update { key DHCP; };
};

zone 0.168.192.in-addr.arpa {
type master;
file "/var/cache/bind/db.192.168.0";
allow-query { 192.168.0.0/24; };
notify yes;
allow-update { key DHCP; };
};

and here is my dhcpd.conf:

ddns-update-style interim;
# option definitions common to all supported networks...
option domain-name "borst.iss";
option domain-name-servers 192.168.0.1;
option ntp-servers 192.168.0.1;

default-lease-time 7200;
max-lease-time 14400;

key DHCP {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret
};
authoritative;
log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.4 192.168.0.30;
ddns-domainname "borsti.ISS";
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;




}
zone borsti.iss {
primary 192.168.0.1;
key DHCP;
}

zone 0.168.192.in-addr.arpa. {
primary 192.168.0.1;
key DHCP;
}
host borsti {
hardware ethernet 00:15:f2:78:0c:46;
fixed-address 192.168.0.122;
}

Thanks for any ideas/hints !

tz
 
Old 07-20-2010, 07:23 AM   #2
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Rep: Reputation: 27
Hi,
From the PC where you do ping borsti. what is there in /etc/resolv.conf

try by adding
Quote:
search borsti.iss
 
Old 07-21-2010, 05:45 AM   #3
tiuz
Member
 
Registered: Mar 2006
Distribution: Slackware 14
Posts: 92

Original Poster
Rep: Reputation: 15
> try by adding

> search borsti.iss

This is already in /etc/resolv.conf on all boxes here.

tz
 
Old 07-21-2010, 05:54 AM   #4
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Rep: Reputation: 27
Hi,

Please check if you have
Code:
$ORIGIN borsti.iss.
in /var/cache/bind/db.borsti.iss
 
1 members found this post helpful.
Old 07-24-2010, 05:05 PM   #5
tiuz
Member
 
Registered: Mar 2006
Distribution: Slackware 14
Posts: 92

Original Poster
Rep: Reputation: 15
Hello,

Ahh, thanks for that hint, so far this entry > $ORIGIN borsti.iss. < was in the zone file but commented out.

Thx,

tz.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND not returning Windows DNS hostnames fantasygoat Linux - Server 1 01-05-2010 03:19 PM
DNS not resolving internet hostnames KeenAs Linux - Networking 9 02-05-2009 03:20 AM
BIND doesn't resolve hostnames information for which is stored on other DNS servers GD_19 Linux - Networking 5 01-03-2006 08:31 PM
Apache DNS hostnames lookup; SuSE 9.2 Carlee SUSE / openSUSE 0 01-29-2005 03:04 PM
updating hostnames via DNS keex Linux - Networking 3 09-22-2003 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration