Knowledgebase

HELP : /etc/named.conf not work

Posted by E-Learning, 06-21-2007, 03:09 PM
hello ... last night i was looking for closing my Open DNS to close it ... but it's seems that i keep playing in the file name /etc/named.conf i back up it before but when i finish i didn't cp /named.conf i type mv named.conf-back /etc/named.conf and all my server now is down and the support sooo bad ... they just told me some commands and it's didn't work then they didn't respond on my ... Thanks a lot .

Posted by mwatkins, 06-21-2007, 03:28 PM
Did you restart bind? If not, restart it. You should probably have your DNS set up to forward requests; your server provider ought to be able to help you with that as they'll have to identify for you the appropriate DNS server(s) to add to your named.conf's forward entry. If you've really messed up your named.conf and also messed up its backup, have them supply you with a sample appropriate for your OS. A friendly piece of advice... you should probably run a *nix box as a personal workstation at home - stop using Windows if you are - and immerse yourself in the tasks of setting up and daily tasks of administering a box -- and then look to manage a leased/rented box from someone else once you've gained some experience. Google will deliver many answers to you. There are many tutorials on bind out there. Read more before asking questions.

Posted by E-Learning, 06-21-2007, 03:38 PM
i well try and see what happen ... thanks alot ....

Posted by E-Learning, 06-21-2007, 04:14 PM
sorry but what the command for restart the bind service ?

Posted by mwatkins, 06-21-2007, 04:16 PM
While I admire you for plunging in head first, you don't seem to be very good at intuitively figuring out things and that is a bad combination if you are going to try to manage a server that sits directly on the internet. That's why I strongly, and sincerely, suggest that you learn "off" the internet - behind a router - on a personal workstation. Everything you learn using some version of Linux on a workstation will be useful to you as you get ready to manage servers. Basic file system navigation, tools like man, which, chmod, setting environments, etc need to become very familiar to you long before you manage a server for real. Otherwise you are just going to get into trouble (usually means your server will be hacked / compromised) within a short period of time.

Posted by E-Learning, 06-21-2007, 04:24 PM
i know that mwatkins i have forums and i just use what i know ... am not manage my server .. but when i need some support the support group here they so bad ... thats why i well change them soon ... and i well learn from internet ... thats why my name mean to learn not to tech best regard's .

Posted by Servax, 06-21-2007, 04:28 PM
etc/init.d/named restart

Posted by mwatkins, 06-21-2007, 04:29 PM
If you aren't managing your own server, why then are you playing with named? Why do you have root access? Why are you trying to secure the machine? That all speaks to "self-managed server". Depending on what version of bind, and operating system, you are running, restarting is (FreeBSD): rndc restart or ndc restart Good luck. PS: whether your OS provides the info or not, try man named and see if it tells you how to restart it. Check the man pages for any application or service before posting here. e.g. from FreeBSD:

Posted by E-Learning, 06-21-2007, 04:31 PM
god blesss you dear Servax for your supporting and nice posting ... here what i got after restart the bind service ... sounds its have alot mistakes !!

Posted by mwatkins, 06-21-2007, 04:33 PM
Remember what I said earlier: Now go do that. Your host supplier should be supporting you on this.

Posted by Servax, 06-21-2007, 04:34 PM
Run that and show us your named.conf

Posted by E-Learning, 06-21-2007, 04:34 PM
bro mwatkins !! am just newbie man ... we learn not tech ??? i use google and this forum to tech my self !! you cannot learn without any mistake and question[s] .... thanks for your posting .

Posted by mwatkins, 06-21-2007, 04:36 PM
Learning by trial and error on a machine which sits on the internet is a disaster waiting to happen.

Posted by E-Learning, 06-21-2007, 04:37 PM
here is it ...

Posted by E-Learning, 06-21-2007, 04:39 PM
bro Servax the support didn't respond .... i mailed them before 3 hours ... BTW .. bas support ...

Posted by Servax, 06-21-2007, 04:42 PM
Try making the syntax

Posted by E-Learning, 06-21-2007, 04:43 PM

Posted by Servax, 06-21-2007, 04:46 PM
Here is an example of a working named.conf: [root@host home]# cat /etc/named.conf include "/etc/rndc.key"; controls { inet 127.0.0.1 allow { localhost; } keys { "rndckey"; }; }; // // named.conf for Red Hat caching-nameserver // options { directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; }; // // a caching only nameserver config // Then here goes the zone stuff, try getting most of it defaulted first, then put back in whatever mods you tried to do to it later.

Posted by E-Learning, 06-21-2007, 04:47 PM
i dont know what you mean to syntax this ?

Posted by E-Learning, 06-21-2007, 04:55 PM
here is some good news it's have now OK thanks alot bro ... now what to do for this error ?

Posted by E-Learning, 06-21-2007, 04:58 PM
god bless you bro ... my sites up now .... but this error i don't know how to fix it .... best regards .

Posted by Servax, 06-21-2007, 05:08 PM
The failed error is fine, thats because the named server was down to begin with, so when you tried to 'restart' it, it failed because it wasn't on in the first place.

Posted by E-Learning, 06-21-2007, 05:11 PM
so what to do to make it [ OK ] ...

Posted by mwatkins, 06-21-2007, 05:14 PM
Re-read post #22 again. If that very simple explanation doesn't make sense to you, then feel free to do the redundantly unnecessary: /etc/init.d/named restart (shakes his head and walks away)

Posted by E-Learning, 06-21-2007, 05:16 PM
you da best .......................1 thanks alot

Posted by Servax, 06-21-2007, 05:16 PM
Yeah.. Just restart named again and it won't give that error.

Posted by E-Learning, 06-21-2007, 05:21 PM
thanks alot ..... but now how can i make these clear [ PASS ] http://www.dnsstuff.com/tools/dnsrep...in%3D3asfh.com Low port test Open DNS servers PASS ??

Posted by mwatkins, 06-21-2007, 05:26 PM
I'm hesitant to get you to edit named.conf because its highly likely you will mess it up again. Punctuation is very important in named.conf. Be careful. At the top of your named.conf add this line: Following the "options {" line, add: ... and don't forget to restart bind. Last edited by mwatkins; 06-21-2007 at 05:30 PM.

Posted by E-Learning, 06-21-2007, 05:36 PM
i think the problem from the first code .. acl internal {65.110.42/24;127.0.0.1;}; i added in the first after this word ... is this rigth ?

Posted by mwatkins, 06-21-2007, 05:40 PM
Try simply changing the acl line to represent your two nameserver IP's and localhost, i.e.: acl internal {65.110.42.110;65.110.42.111;127.0.0.1;};

Posted by E-Learning, 06-21-2007, 05:45 PM
thanks thanks thanks a bunch ... but the last FAIL there is how can we solve it ... and what about the yellow report here like is these yellow recored looks wired ?? best regard's for your support Dear mwatkins

Posted by Servax, 06-21-2007, 05:47 PM
Single Point of Failure - Nothing you can really do, you only have one server, it's talking about DNS being centralized on one server. So it's fine, ignroe it. The yellow records are nothing to really worry about.

Posted by E-Learning, 06-21-2007, 05:49 PM
Thanks alot for your Supporting Bro ... Best Regards And Thanks .. Last edited by E-Learning; 06-21-2007 at 05:58 PM.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Host for Escort-site (Views: 623)
Reseller with THT (Views: 4022)


Language:

Client Login

Email

Password

Remember Me

Search