edesignway

Well-Known Member
Dec 4, 2001
96
0
306
I an a newbie at all this named, rndc, and all that, so please go easy on me.

I am tring to use rndc, however, I guess its not installed... when entering the commands at the command prompt, it says its not there. How do I get this installed or what might I be doing wrong?
 
B

bdraco

Guest
[quote:d598dcec54][i:d598dcec54]Originally posted by edesignway[/i:d598dcec54]

I an a newbie at all this named, rndc, and all that, so please go easy on me.

I am tring to use rndc, however, I guess its not installed... when entering the commands at the command prompt, it says its not there. How do I get this installed or what might I be doing wrong?[/quote:d598dcec54]


Try

su -
 

edesignway

Well-Known Member
Dec 4, 2001
96
0
306
Thanks! that is what I needed to do! now hopefully my next few steps go off without a hitch!
 

edesignway

Well-Known Member
Dec 4, 2001
96
0
306
Would anyone be insterested in give me a little step by step help on setting this up? I am a little lost here, and I am sure it is something very simple!
 

edesignway

Well-Known Member
Dec 4, 2001
96
0
306
I get this when starting named, any ideas?

Feb 18 02:06:27 edesignway named[7885]: starting BIND 9.1.0 -u named
Feb 18 02:06:27 edesignway named[7885]: using 1 CPU
Feb 18 02:06:27 edesignway named[7887]: loading configuration from '/etc/named.conf'
Feb 18 02:06:27 edesignway named: named startup succeeded
Feb 18 02:06:27 edesignway named[7887]: master.c:250: unexpected error:
Feb 18 02:06:27 edesignway named[7887]: isc_lex_gettoken() failed: unexpected end of input
Feb 18 02:06:27 edesignway named[7887]: zone configuration for '.' failed: unexpected error
Feb 18 02:06:27 edesignway named[7887]: loading configuration: failure
Feb 18 02:06:27 edesignway named[7887]: exiting (due to fatal error)
 
B

bdraco

Guest
[quote:53397cdd69][i:53397cdd69]Originally posted by edesignway[/i:53397cdd69]

I get this when starting named, any ideas?

Feb 18 02:06:27 edesignway named[7885]: starting BIND 9.1.0 -u named
Feb 18 02:06:27 edesignway named[7885]: using 1 CPU
Feb 18 02:06:27 edesignway named[7887]: loading configuration from '/etc/named.conf'
Feb 18 02:06:27 edesignway named: named startup succeeded
Feb 18 02:06:27 edesignway named[7887]: master.c:250: unexpected error:
Feb 18 02:06:27 edesignway named[7887]: isc_lex_gettoken() failed: unexpected end of input
Feb 18 02:06:27 edesignway named[7887]: zone configuration for '.' failed: unexpected error
Feb 18 02:06:27 edesignway named[7887]: loading configuration: failure
Feb 18 02:06:27 edesignway named[7887]: exiting (due to fatal error)[/quote:53397cdd69]

From that error it appears you have an error in your root hint zone ...
 

edesignway

Well-Known Member
Dec 4, 2001
96
0
306
Ok, I have fixed my root zone file. Now I am receiving this error message.

Feb 18 15:13:42 edesignway named[22623]: couldn't open pid file '/var/run/named.pid': Permission denied

However that file isnt there... Is there a sample file out somewhere that I can use to create my own?
 

awsol

Well-Known Member
Feb 8, 2002
578
0
316
Boston MA
PID files are just the proccess ID . Most programs will create one when you run them. Only thing I can think of doing is this

pico named.pid

Then save it and try running it. Maybe bind doesn't create one. So make a plain file and see if that works.
 

awsol

Well-Known Member
Feb 8, 2002
578
0
316
Boston MA
Ok I just checked my server and the named.pid file is actually in

[/var/run/named]

You may want to check over your settings.
 

edesignway

Well-Known Member
Dec 4, 2001
96
0
306
Well, what is supposed to be in the named.pid file? Can I get a sample named.pid from somewhere and just make my own that way?
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:3ccb929354][i:3ccb929354]Originally posted by edesignway[/i:3ccb929354]

Well, what is supposed to be in the named.pid file? Can I get a sample named.pid from somewhere and just make my own that way?[/quote:3ccb929354]

try:

touch /var/run/named.pid

chown named.named /var/run/named.pid

/scripts/restartsrv bind

(in this order)

Did bind start?
 

edesignway

Well-Known Member
Dec 4, 2001
96
0
306
This is what is returned.

Feb 19 01:31:33 edesignway named[31944]: starting BIND 9.1.0 -u named
Feb 19 01:31:33 edesignway named[31944]: using 1 CPU
Feb 19 01:31:33 edesignway named[31946]: loading configuration from '/etc/named.conf'
Feb 19 01:31:33 edesignway named: named startup succeeded
Feb 19 01:31:33 edesignway named[31946]: zone '0.0.127.in-addr.arpa': 'check-names' is not implemented
Feb 19 01:31:33 edesignway named[31946]: zone 'localhost': 'check-names' is not implemented
Feb 19 01:31:33 edesignway named[31946]: the default for the 'auth-nxdomain' option is now 'no'
Feb 19 01:31:33 edesignway named[31946]: set maximum open files to -1: permission denied
Feb 19 01:31:33 edesignway named[31946]: no IPv6 interfaces found
--
It lists all of my IPS
--
Feb 19 01:31:33 edesignway named[31946]: command channel listening on 127.0.0.1#953
Feb 19 01:31:33 edesignway named[31946]: couldn't open pid file '/var/run/named.pid': Permission denied
Feb 19 01:31:33 edesignway named[31946]: exiting (due to early fatal error)
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:86f1dc8cfd][i:86f1dc8cfd]Originally posted by edesignway[/i:86f1dc8cfd]

This is what is returned.

Feb 19 01:31:33 edesignway named[31944]: starting BIND 9.1.0 -u named
Feb 19 01:31:33 edesignway named[31944]: using 1 CPU
Feb 19 01:31:33 edesignway named[31946]: loading configuration from '/etc/named.conf'
Feb 19 01:31:33 edesignway named: named startup succeeded
Feb 19 01:31:33 edesignway named[31946]: zone '0.0.127.in-addr.arpa': 'check-names' is not implemented
Feb 19 01:31:33 edesignway named[31946]: zone 'localhost': 'check-names' is not implemented
Feb 19 01:31:33 edesignway named[31946]: the default for the 'auth-nxdomain' option is now 'no'
Feb 19 01:31:33 edesignway named[31946]: set maximum open files to -1: permission denied
Feb 19 01:31:33 edesignway named[31946]: no IPv6 interfaces found
--
It lists all of my IPS
--
Feb 19 01:31:33 edesignway named[31946]: command channel listening on 127.0.0.1#953
Feb 19 01:31:33 edesignway named[31946]: couldn't open pid file '/var/run/named.pid': Permission denied
Feb 19 01:31:33 edesignway named[31946]: exiting (due to early fatal error)
[/quote:86f1dc8cfd]

Could you run a search in your /etc/named.conf to see if you have these somewhere in it:

files unlimited

check-names

named.pid

directory

If you do have any of these, can you copy and paste the relevant lines or sections on here (you could mask the actual domain names).
 

edesignway

Well-Known Member
Dec 4, 2001
96
0
306
This is what I have...

options {
directory &/var/named&;
pid-file &/var/run/named.pid&;
files unlimited;
recursion yes;
forward first;

forwarders


zone &0.0.127.in-addr.arpa&
{
type master;
file &127.0.0.zone&;
check-names fail;
allow-update { none; };
};

zone &localhost&
{
type master;
file &localhost.zone&;
check-names fail;
allow-update { none; };
 
B

bdraco

Guest
[quote:9411935d67][i:9411935d67]Originally posted by edesignway[/i:9411935d67]

This is what I have...

options {
directory &/var/named&;
pid-file &/var/run/named.pid&;
files unlimited;
recursion yes;
forward first;

forwarders


zone &0.0.127.in-addr.arpa&
{
type master;
file &127.0.0.zone&;
check-names fail;
allow-update { none; };
};

zone &localhost&
{
type master;
file &localhost.zone&;
check-names fail;
allow-update { none; };[/quote:9411935d67]

Email me your server's ip and root password and I'll fix it for you

[email protected]

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBDsVczwRBAC0JkiC27CWUSCAjSM3Xwqjax+xg+Z4oqIFZhMZXRaEDQl1HZHs
9rzZpD9iAeuxABiBKPCslnUPHxvpEADJij1sOn23Hupq55EQ/1Z1mViVRrsJar0j
PFp2wnm266AOjSB9Bz6Z8nNfwS65BwU2W9Mtb5megkI1obP6LChnlfOKtwCgvsc6
77pTpAE1Klho2+2Bn6IP488D/jPnKhU+lKWfG75eiygt7SCxKLxBOuEygW2QFXAd
YEX0zRmG/0rQ/2pCYC+MZORSiOc73SIVWSkkZ7lxPGXe64pBjg0Dx+wd+Rc4yg/W
OQb/LW8wH6HG/zPXP27Bz8V4uOS7TUxN8GIFEJzfV1lmTkEZCdbkRUI9mlf0iHCV
jQWhA/96B142qMVhgK5iF02wG/2z4AmsBO05XN4Wo6m3INkkDIPKKECe1Snj6SPP
2QuR1V606iESU9TtfHiVOskdO1iUxZhbUsehqdcLk1uRMYvA0ub0+UNxBBX7eMGv
Oww2knmKCa6A5586sWLKTlhMD548tsPFr7bFs6tya2aegBEzy7QoSi4gTmljayBL
b3N0b24gKGJkcmFjbykgPG5pY2tAYnVyc3QubmV0PohXBBMRAgAXBQI7FXM8BQsH
CgMEAxUDAgMWAgECF4AACgkQT5huNxcQLWBs8wCfUR6uMOc9fv9J/Rvj6kHIWlP5
81sAoKRu5FfOfseZhHwr1kmo9kgULYyduQINBDsVc1UQCADNmrnLtBMnxDpSVLxN
Gq9wnQmoNAzcVPNMr8IgarG3i4hVjyr050U0D7rYSKiA3VjIefiK8ltYTHIVNnYp
LcxawmlsiXn4Jkw2uXV8f/cjswLecfAfZa7OtgKwdyAasDS/5TMCRwsUcpHNYBWk
TsTikXRgLzm9AWRNQHdTf3Se86s+py64/C7yHCeQou89eaKOHajO0Oe7zM6qxqcA
lhLiB5J1FJTo5rBQQFe3vfbN6NQDhT9mnoNjvyrF0L9gIo8Nub+ELTVXDpqwuAwi
1OIHd9YUlRz4c+f0f6i5ou0sznYKtn3Z5su30osZaXyeY0nezMNXlVWl7TADjohw
7JC/AAMHB/0cSwfkgOxyuvJ2H9+8GBLI9nEQVAHc0UZgm7E6iVrpxfe8ranYijZe
c5l8LgwWnJEzOeljlRByEVpO/f19TxCd3eV9Ecd1SFbMcLptd+hkyXmG0t+EnddT
0xHLZgsRTyIN6feiv4XV1TyNq4K+gTuO5gxqny6yW0rKKe0RWQFGT8sA8hLw622Y
+Hmh1WNu6Nm7FYLIlhJFvDQtSgkGnY1wHUa1qggZMUu1jARLvDc1aPxTfaC3Q7gl
Qzx51F+ckyIWhzsdKHsPuUsxAXUQ3+vNO/p35atbY60NqSFxSxi5lrq9yYwnzzyQ
uEauS0HjDErG1z5FopYLDwO6xKCP4IdxiEYEGBECAAYFAjsVc1UACgkQT5huNxcQ
LWDOPACgvB5PKu1IFZhYh3oDwVF2CpPrbdUAoJI1ROLTaJYfx+VIHe5XQzCDUPlW
=HhYf
-----END PGP PUBLIC KEY BLOCK-----
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:ff1e19ccfb][i:ff1e19ccfb]Originally posted by edesignway[/i:ff1e19ccfb]

This is what I have...

options {
directory &/var/named&;
pid-file &/var/run/named.pid&;
files unlimited;
recursion yes;
forward first;

forwarders


zone &0.0.127.in-addr.arpa&
{
type master;
file &127.0.0.zone&;
check-names fail;
allow-update { none; };
};

zone &localhost&
{
type master;
file &localhost.zone&;
check-names fail;
allow-update { none; };[/quote:ff1e19ccfb]

Best is to let Nick handle it for you as you may have other problems with your named.conf and bind.

I was going to suggest these remedies:

Delete these 3 lines in named.conf:

files unlimited; (this is probably what's giving you this error: [set maximum open files to -1: permission denied] -1 indicating unlimited)

check-names fail; (both occurrences - I think this directive has become obsolete with bind 9)

Change this line:

pid-file &/var/run/named.pid&;

to:

pid-file &/var/run/named/named.pid&; (the ; at the end is a must or things will go haywire ;) )

try to make sure after all those lines under options { ....... you have a closing brace as }; just like the other sections (can't see the closing brace in your post)

and save the named.conf.

Then try this at the command line to get rid of this error: [couldn't open pid file '/var/run/named.pid': Permission denied.]

[b:ff1e19ccfb]mkdir /var/run/named[/b:ff1e19ccfb]
(this will create the directory you've just specified in named.conf; if the directory already exists, that's fine; it'll just say: No such file or directory)

[b:ff1e19ccfb]chown named.named /var/run/named[/b:ff1e19ccfb]
(this will make user &named& the owner of the directory so it can have the permissions to read the contents and create files in the directory)

[b:ff1e19ccfb]touch /var/run/named/named.pid[/b:ff1e19ccfb]
(this will create the file named.pid in the directory - as specified in named.conf)

[b:ff1e19ccfb]chown named.named /var/run/named/named.pid[/b:ff1e19ccfb]
(this will make user &named& the owner of the file so it can have the permissions to read and write the process ID to the file when you start bind, e.g. 4589)

I think the warning that says [the default for the 'auth-nxdomain' option is now 'no'] is harmless although it can be eliminated.

Then restart bind as previously:

[b:ff1e19ccfb]/scripts/restartsrv bind[/b:ff1e19ccfb]

Good luck!
 

edesignway

Well-Known Member
Dec 4, 2001
96
0
306
Well, so far everything appears to be resolving properly! I just would like to give a BIG thanks to everyone that helped me out. I appreciate it very much!! If there is anything you guys ever need, I'll be here!