DNS Issues Rndc.conf & Named.conf
Apr 8, 2009
It started with this error:
Bind reloading on server01 using rndc zone: [ns1.mydomain.net]
Error reloading bind on server01: rndc: connect failed: 127.0.0.1#953: connection refused
so i did the obvious checked the csf firewall to see if port 953 was enabled and it was
so i took a look at rndc.conf
Code:
root@server01 [~]# nano /etc/rndc.conf
#start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M=";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
# Use with the following in named.conf, adjusting the allow list as needed:
#key "rndc-key" {
# algorithm hmac-md5;
# secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M=";
#};
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf
Then i took a look at named.conf
Code:
options {
/* make named use port 53 for the source of all queries, to allow
* firewalls to block all ports except 53:
*/
//query-source port 53;
/* We no longer enable this by default as the dns posion exploit
has forced many providers to open up their firewalls a bit */
// Put files that named is allowed to write in the data/ directory:
directory "/var/named"; // the default
pid-file "/var/run/named/named.pid";
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
/* memstatistics-file "data/named_mem_stats.txt"; */
};
logging {
/* If you want to enable debugging, eg. using the 'rndc trace' command,
* named will try to write the 'named.run' file in the $directory (/var/named").
* By default, SELinux policy does not allow named to modify the /var/named" directory,
* so put the default debug log file in data/ :
*/
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
// All BIND 9 zones are in a "view", which allow different zones to be served
// to different types of client addresses, and for options to be set for groups
// of zones.
//
// By default, if named.conf contains no "view" clauses, all zones are in the
// "default" view, which matches all clients.
//
// If named.conf contains any "view" clause, then all zones MUST be in a view;
// so it is recommended to start off using views to avoid having to restructure
// your configuration files in the future.
view "localhost_resolver" {
/* This view sets up named to be a localhost resolver ( caching only nameserver ).
* If all you want is a caching-only nameserver, then you need only define this view:
*/
match-clients { 127.0.0.0/24; };
match-destinations { localhost; };
recursion yes;
zone "." IN {
type hint;
file "/var/named/named.ca";
};
/* these are zones that contain definitions for all the localhost
* names and addresses, as recommended in RFC1912 - these names should
* ONLY be served to localhost clients:
*/
include "/var/named/named.rfc1912.zones";
};
View 5 Replies
ADVERTISEMENT
Mar 2, 2008
i have adidcated server any i get anew one
and my site is rock2host.com
on the domain name i make the ns1 - ns2-ns3-ns4 of ips of the new server
but the problem that to this time there is no any account on my server is working
as i have adns error but i do not what is the problem
i made that
DNS Functions
Adding an A entry for your hostname
Bind reloading on server using rndc zone: [rock2host.com] Error reloading bind on server: rndc: get config key list: not found
DNS Functions
Cleanup Nameserver Config File
Fatal! named.conf fails named-checkconf, please repair named.conf and try again
View 14 Replies
View Related
May 31, 2008
i am running centos 5 with bind9 and there is no /etc/named.conf. All i could find is /etc/named.caching-nameserver.conf
i am planning to runs dns nameserver for my domain. where to do zone entries?
View 9 Replies
View Related
May 30, 2008
i have cpanel running on my dedicated server and i have accidentally deleted /etc/named.conf
how to recover it? will cpanel maintain backup or of some sort? i havent stopped bind so my sites are working till now.
View 9 Replies
View Related
Jun 21, 2007
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 ...
View 14 Replies
View Related
Oct 28, 2009
I'd like to add geodns to BIND, so I need to modify named.conf. All that I will put into is a include of an acl file (for different IP ranges), and add a new view for existed domain.
My VPS use cPanel. What is the best way to handle this, as named.conf can be modify by cPanel? I can modify the template in /scripts/rebuilddnsconfig, but I don't know how to add a new view.
There's only one site in my VPS. But I use a few subdomains in DNS (legacy issues). Only one db file in /var/named/
View 2 Replies
View Related
Aug 11, 2008
I have the following problem:
When i try to restart the nameserver service i get the following error:
# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:87: unknown option 'e'
/etc/named.conf:120: unexpected end of input
[FAILED]
my named.conf as follows:
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};
options {
/* make named use port 53 for the source of all queries, to allow
* firewalls to block all ports except 53:
*/
query-source port 53;
// Put files that named is allowed to write in the data/ directory:
directory "/var/named"; // the default
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
/* memstatistics-file "data/named_mem_stats.txt"; */
};
logging {
/* If you want to enable debugging, eg. using the 'rndc trace' command,
* named will try to write the 'named.run' file in the $directory (/var/named).
* By default, SELinux policy does not allow named to modify the /var/named directory,
* so put the default debug log file in data/ :
*/
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
// All BIND 9 zones are in a "view", which allow different zones to be served
// to different types of client addresses, and for options to be set for groups
// of zones.
//
// By default, if named.conf contains no "view" clauses, all zones are in the
// "default" view, which matches all clients.
//
// If named.conf contains any "view" clause, then all zones MUST be in a view;
// so it is recommended to start off using views to avoid having to restructure
// your configuration files in the future.
view "localhost_resolver" {
/* This view sets up named to be a localhost resolver ( caching only nameserver ).
* If all you want is a caching-only nameserver, then you need only define this view:
*/
match-clients { 127.0.0.0/24; };
match-destinations { localhost; };
recursion yes;
zone "." IN {
type hint;
file "/var/named/named.ca";
};
// include "/var/named/named.rfc1912.zones";
// you should not serve your rfc1912 names to non-localhost clients.
// These are your "authoritativ
zone "smpl.splinteredmedia.net" {
type master;
file "/var/named/smpl.splinteredmedia.net.db";
};
e" internal zones, and would probably
// also be included in the "localhost_resolver" view above :
};
view "external" {
/* This view will contain zones you want to serve only to "external" clients
* that have addresses that are not on your directly attached LAN interface subnets:
*/
recursion no;
// you'd probably want to deny recursion to external clients, so you don't
// end up providing free DNS service to all takers
// all views must contain the root hints zone:
zone "." IN {
type hint;
file "/var/named/named.ca";
};
// These are your "authoritative" external zones, and would probably
// contain entries for just your web and mail servers:
// BEGIN external zone entries
};
z
zone "smpl.splinteredmedia.net" {
type master;
file "/var/named/smpl.splinteredmedia.net.db";
};
I have cPanel installed on a CentOS 5.1 VPS
View 11 Replies
View Related
Dec 5, 2008
none:0: open: /etc/named.conf: file not found
i had install cpanel on Cent Os 5 on a VPS
Cpanel Correctly Running but named does not working !
i try to restart named but it say :
root@server [/etc]# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
none:0: open: /etc/named.conf: file not found
[FAILED]
View 5 Replies
View Related
Jun 23, 2007
I'm getting this warning from check server security option in csf :
--------
You have a local DNS server running but do not have any recursion restrictions set in /etc/named.conf. This is a security and performance risk and you should look at restricting recursive lookups to the local IP addresses only
--------
I saw named.conf but In fact I didn't understand what should I do
Can somebody tells me what should i do and what this warning trying to tell me?
View 2 Replies
View Related
Dec 19, 2008
After Cpanel update latest release version. I have issue with named.conf.
I tried to rebuild named. but..
/scripts/rebuilddnsconfig
fixrndc requires a syntactically correct /etc/named.conf.
No changes were made to /etc/named.conf.
Problem was:
/etc/named.conf:23: when using 'view' statements, all zones must be in views
Anyone can explain me about "/etc/named.conf:23: when using 'view' statements, all zones must be in views"?
View 11 Replies
View Related
May 28, 2009
How can I limit the amount of processes a user can have open at one time?
View 1 Replies
View Related
Jun 16, 2009
I installed pureftpd from source and everything is working fine but there is no oureftpd.conf file anywhere, it should be in /etc/pureftpd.conf.
How to get a conf file of pureftpd where I could turn Anonymous login off?
View 7 Replies
View Related
Jun 17, 2009
I have nginx conf which works perfectly fine with ip adress,but when i put domain then php for some reason no longer works,i getting download php file situation.
Here is main conf file:
#######################################################################
#
# This is the main Nginx configuration file.
#
# More information about the configuration options is available on
# * the English wiki - http://wiki.codemongers.com/Main
# * the Russian documentation - http://sysoev.ru/nginx/
#
#######################################################################
#----------------------------------------------------------------------
# Main Module - directives that cover basic functionality
#
# http://wiki.codemongers.com/NginxMainModule
#
#----------------------------------------------------------------------
user nginx;
worker_processes 5;
error_log /var/log/nginx/nginx-error.log crit;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
#----------------------------------------------------------------------
# Events Module
#
# http://wiki.codemongers.com/NginxEventsModule
#
#----------------------------------------------------------------------
events {
worker_connections 2048;
}
#----------------------------------------------------------------------
# HTTP Core Module
#
# http://wiki.codemongers.com/NginxHttpCoreModule
#
#----------------------------------------------------------------------
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log off;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
# Load config files from the /etc/nginx/conf.d directory
include /etc/nginx/conf.d/*.conf;
#
# The default server
#
server {
listen 81;
server_name main.main.net;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ .php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ .php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /.ht {
# deny all;
#}
}
}
View 1 Replies
View Related
Jun 23, 2008
I'm about to set my own permalink rules in Wordpress.
My VPS is running LxAdmin on CentOS and I have lighttpd installed. I've read I need to edit lighttpd.conf but I don't know which application I should use. The file is located in /etc/lighttpd/ but have no idea how to gain access.
View 7 Replies
View Related
Oct 25, 2008
I don't have location/ in conf file where should this be placed under or above what content should this be added?
View 4 Replies
View Related
Apr 21, 2008
I have a new VPS server in which I did not configure the /etc/resolv.conf file. My VPS has three domains that are all working and resolving fine. But I keep getting an email from my provider that says this:
The hostname (v6.volumedr.com) resolves to. It should resolve to xx.xx.xx.xx. Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.
Some are all of these problems can be caused by
/etc/resolv.conf being setup incorrectly. Please check this file if youbelieve everything else is correct.
You may be able to automaticly correct this problem by using the Add an A entry for your hostname ' under ' Dns Functions ' in your Web Host Manager.
Why does the actual server hostname need to resolve via dns?
I have confirmed that /etc/hosts looks good and I added an A record in my WHM for each domain. Do I need to configure the /etc/resolv.conf file too? Do I need to list my three domains and my server hostname(v8) and then my two primary DNS servers?
View 10 Replies
View Related
Jun 22, 2007
I have a box: Dual Opteron 248 - 2GB RAM, Centos 4.x, Cpanel / WHM, does anyone can help me set value in httpd.conf for better?
Set "Timeout"
Set "KeepAlive"
Set "KeepAliveTimeout"
Set "MinSpareServers"
Set "MaxSpareServers"
Set "MaxRequestsPerChild"
Set "HostnameLookups"
I've got many emails from cpanel that httpd fail, check in apache logs i cant find any error
View 1 Replies
View Related
Feb 15, 2007
I'm supposed to be completing a server migration on Saturday night. But I have one teeeeny tiny problem....
I have no DNS/nameservers provided by my new DC for the resolv.conf.
They have them - but I don't think they operate like true root nameservers or something. I keep getting a ton of Unroutable Mail Domain errors for server email that should be leaving the new box.
When the resolv.conf was set to use the 4.2.2.x dns servers - it was working fine.
And I don't know if it's ok to just keep it using those or not?...
What other DNS servers can I use for the resolv.conf? Any DC's nameservers? Are there "public" ones available somewhere?
View 9 Replies
View Related
May 1, 2007
I tried that recently to install PHP 4 & PHP 5 on the same server - without any luck, i stumbled into a massive hole.
the existing httpd.conf was replaced and there was a backup made - stupid me accidently deleted this backup file and was left this a non-working copy of httpd.conf - if anyone can help me it would be much appreciated.
root@server1 [~]# /etc/init.d/httpd configtest
Warning: DocumentRoot [/dev/null] does not exist
Syntax OK
View 5 Replies
View Related
Apr 17, 2007
I would like to set some hard limits for some developmental testing I am doing using quota tools and what not. In limits.conf I have the following:
--------
@dev hard cpu 0.30
--------
As far as I can see, this would limit all users in the group "dev" from using more than half a minute of CPU time, am I correct?
Assuming I am, once I write these changes no limits seem to be enforced. Are these values cached in the memory and a reboot is needed for them to take effect?
View 1 Replies
View Related
Feb 5, 2007
Is it better to put the IP of your server on the first line followed by the dns servers from the datacenter? And, how do you make the changes go in effect? I assume you just restart bind?
View 4 Replies
View Related
Nov 1, 2009
I always used httpd.conf to set my virtualhosts and it worked perfect. Untill now.
All domains I point to my IP get's pointed to first virtual host folder. And it doesnt care about other settings. My config:
Code:
<VirtualHost *>
ServerSignature Off
ServerAlias omgwtf.com
ServerAdmin rytis@s.lt
DocumentRoot /var/www
ServerName blahblah.com
Options -Indexes
</VirtualHost>
<VirtualHost *>
ServerSignature Off
ServerAlias blahblah.com
ServerAdmin rytis@z.lt
DocumentRoot /var/www/epo
ServerName blahblah.com
Options -Indexes
</VirtualHost>
And it doesnt care about that I set xyz.com to /var/www/epo, it just loads /var/epo.
I have restarted apache.
View 3 Replies
View Related
Jun 4, 2008
I just installed a new version of CSF again on my server.
Based on the article and tutorial that I read, I do not have to change anything much on the csf.conf if I am installing it for WHM/Cpanel server.
I notice new version 3.33 has new function such as synflood and so on, can someone tell me if I need to change any settings inside my csf.conf other than disabling the testing = 0 on a fresh new cpanel server?
View 3 Replies
View Related
Mar 6, 2008
I recently updated to apache 2.2 and when I went to check
/usr/local/apache/conf/httpd.conf
I noticed that a lot of the stuff was missing from what I usually see in apache 1.3 Was a new file created when the update was finish? I used easyapache to make the update.
I was actually looking to change the
Keepalive
Timeout
MinSpareServers
MaxSpareServers
MaxRequestsPerChild
Etc...
But it doesn't look like it's in there.
View 2 Replies
View Related
Sep 19, 2008
I was playing with a backup machine I have today. It's been running FreeBSD 6.3 a while now. I just realised today that CPUTYPE in make.conf was set wrong. When I set it to what it should be, according to the list of valid values, I got odd errors during world and kernel rebuilds, along with some from some ports. I googled it and found many people do not suggest setting that directive in make.conf. May I ask if anybody has experience with this, and what impact it would have on my box should I remove the directive and recompile?
View 0 Replies
View Related
Sep 15, 2008
I'm trying to accomplish a redirect (or rewrite) of [url]to [url]
* I got DNS *.domain.com correctly pointing to my server.
* I also created a vhost.conf inside /var/www/vhosts/domain.com/conf, and Plesk (/var/www/vhosts/domain.com/conf/httpd.include) is correctly including the file.
* even though I don't know if it's needed or not, I created in Plesk a new CNAME with value *.domain.com pointing to domain.com
in my vhost.conf I got:
ServerAlias *.domain.com
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^.]+).domain.com
RewriteRule (.*) /temp/%1/$1 [L]
when I try whatever.domain.com, I'm getting a 500 Internal Server Error.
View 1 Replies
View Related
Sep 15, 2008
how should I optimize httpd.conf on my server. Apache was set up by my friend, unfortunately it started to "stuck" lately during peak time. Browser is connecting to a website for a long time before it actually starts to load it.
My current setup:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 300
KeepAliveTimeout 15
MinSpareServers 2
MaxSpareServers 5
StartServers 5
ServerLimit 650
MaxClients 650
Server:
Intel Quad-Core Xeon X3220 @ 2.40 GHZ
4x 2GiB Kingston ECC Not-Registred 667Mhz
2x 150GiB RaptorX 10k RPM, sw raid 1
View 12 Replies
View Related
May 26, 2008
I remember seeing a website/forum where you couldn't post your server stats and httpd.conf settings and experts would give advice on settings you should use.
Does anyone know the url to this site, or site similar to it
View 14 Replies
View Related
Jan 13, 2008
i own a dedicated server with bind running i have assigned 2 IPs for my nameservers.
what IPs should resolv.conf contain? should it have my nameserver IPs or that of hosting provider?
View 5 Replies
View Related
May 20, 2008
My sites all respond very slow (VPS) at the initial loading, that's why I try to check all dns settings.
My current resolv.conf
nameserver 64.235.32.203
that is the ns of my hosting provider.
Would I have an advantage if I add another and if so can I simply add my own nameservers?
View 8 Replies
View Related
Aug 11, 2008
my server is centos with whm/cpanel,
i find there are two httpd.conf in my server,
/etc/httpd/conf/httpd.conf
/usr/local/apache/conf/httpd.conf
i want to ask if i want to tune the httpd,
which one i should edit?
and what are the difference of them?
View 5 Replies
View Related