My VPS was a clean build 2 weeks ago and so far i have installed cpanel and configured everything and added accounts. I began that one of my scripts that uses gethostbyaddr($ip) was failing to resolve any of the ip's it received. I made another PHP file to test this, with this code:
PHP Code:
<?phpecho file_get_contents[url];?>
Resulting in:
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known
The thing is, the VPS is resolving domains just fine
;; ANSWER SECTION:
google.com. 300 IN A 64.233.167.99
google.com. 300 IN A 64.233.187.99
google.com. 300 IN A 72.14.207.99
;; AUTHORITY SECTION:
google.com. 343652 IN NS ns2.google.com.
google.com. 343652 IN NS ns3.google.com.
google.com. 343652 IN NS ns4.google.com.
google.com. 343652 IN NS ns1.google.com.
;; ADDITIONAL SECTION:
ns1.google.com. 343143 IN A 216.239.32.10
ns2.google.com. 343143 IN A 216.239.34.10
ns3.google.com. 343143 IN A 216.239.36.10
ns4.google.com. 343143 IN A 216.239.38.10
I've been having this problem for a while now. I have a dedicated linix server running with the cpanel. I've setup my own nameservers and for the most part it all runs without a problem. However, every now and then the domains will not resolve for many people.
This may only last a few minutes but it happens regularly. There doesn't seem to be any pattern. The server is still available via IP address. Also, any domain name set as a nameserver with the registrar is not affected by this problem. All other domains are affected. This problem has persisted over many cpanel updates.
I have gone through all the nameserver files (I can think of or have read about) looking for something that may be causing this but everything looks normal.
the DNS Server never resolves, i create one account on my server, i put the nameservers... about 6 Hours ago and nothing, i setup the Domain DNS and nothing, what can be? how i can fix this?
i use centos based server. yesterday everything was OK. but now, when i connect via SSH, my server can't resolve hosts. wget, ping, or curl don't work. also i use VNC to remote desktop. when try to open a page via firefox, it says server not found.
I got a new server from uk2, has whm but i just couldnt get the server to work, i changed hostname and made nameservers etc but couldnt get it to work i pointed ips to hostnames and everything no response, domain is www.uploadline.com ns1.uploadline.com and ns2.uploadline.com i havent used cpanel for 2 years now and i used to have alot of experience in it before these days i just stick to directadmin and other control panels.
I just need to ask a few questions and i need help too to get my server up and running as im losing alot of time and money here
i remembered when i changed hostname on whm i need to run this through ssh: /usr/local/cpanel/cpkeyclt So i did, and this was the result:
Quote:
login as: rootroot@server80004.uk2net.com's password: Last login: Sat Nov 1 01:39:07 2008 from proxy-sov.uk2.net root@server1 [~]# /usr/local/cpanel/cpkeyclt Updating Internal cPanel Information........................................quer y failed: query timed out [cpkeyclt.pl]: No working dig found! Unable to establish connection. License server hostnames could not be resolve to IPs. Done .Done root@server1 [~]#
i am having a problem getting a dedicated server running for Unreal Tournament GOTY. everytime i create a dedicated server i get this error in the console:
Log: AInternetLink Resolve failed: Can't find host master.mplayer.com (WSANO_DATA) ScriptLog: UdpServerUplink: Failed to resolve master server address, aborting.
I have a fresh server running CentOS 6 (final). I am trying to install Plesk 11.5.30 but i am experiencing some problems. When i run the plesk-installer i get this message:
Your host name must resolve to the correct IP address of your server, unless you are using network address translation (NAT).
Please quit Parallels Installer, fix the host name resolution problem, and then try installing again.
You can skip the hostname check and continue the installation, however, in such a case, the installer cannot guarantee successful installation.
I've been having some DNS problems with one of my domains for quite some time now. The domain does not always resolve - some go days without being able to access the site.
I ran a simple BASH script to show what I mean. I replaced my domain with "mysite.net" and the IP with "xx.xx.xxx.xxx".
# for i in `seq 1 15`; do host mysite.net; done
mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx Host mysite.net not found: 2(SERVFAIL) mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net. mysite.net has address xx.xx.xxx.xxx mysite.net mail is handled by 0 mysite.net.
Has anyone experienced a similar problem? I have gone over the DNS records countless times and see no problems. The site is hosted on my own dedicated server.
I hope your day is going good. I've been trying to fix a problem I had all week. I receive daily email notification that "example.[url]" does not resolve to any IP. However, when in WHM, it already contains Server Main Ip: 208.53.183.125. I've tried a few solutions from the web, but to no avail:
IMPORTANT: Do not ignore this email. The hostname (example.mydomainname.com) resolves to . It should resolve to 208.53.183.125. 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 you believe 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
1) Within WHM, I have the following:
-Add an A entry for your hostname (I only have one listed) Hostname: example.mydomainname.com Server Main Ip: 208.53.183.125
-Primary/secondary nameserver Primary Nameserver: ns1.mydomainname.com (A entry = 208.53.181.26) Secondary Nameserver: ns2.mydomainname.com (A entry = 208.53.181.27)
-Additional IP my webhost gave me to use: 208.53.181.26 (used in primary name server) 208.53.181.27 (used in secondary name server) 208.53.181.28
-Current DNS Zone listing: example.com (my website URL that is currently working) example.mydomainname.com (hostname I made myself that contains the server main IP) ns1.mydomainname.com (A entry = 208.53.181.26) ns2.mydomainname.com (A entry = 208.53.181.27)
2) My edit "edit /etc/resolv.conf" contains the following: Search localdomain nameserver 66.90.68.25 nameserver 66.90.68.26
Issue: I receive daily email notification that "example.mydomainname.com" does not resolve to any IP. However, when in WHM, it already contains Server Main Ip: 208.53.183.125.
Currently I get problems that domains at certain places not open.
Like e.g I write my server IP XXX.XXX.XXX.XXX it works fine and I get ping reply also, but at the same time I write [url]it would not resolve.
Similarly in web browser I write server IP it gives cpanel page but on same computer I write [url]I get page cannot be opened, when I refresh the page at certain times then it would open. Now once it is opened in the same computer it would work fine here.
In some internet connections it works fine i.e no problems, in some connections get similar problems that domains does not resolve properly.
Yesterday we registerd and created 2 domains in our server. Everything is ok, files uploaded, dns zones created, httpd virtual host created...
The problem is that trying to browse the site trough http://www.site.com redirects me to [url] my main server IP address, this page shows a cPanel Welcome message.
But, using [url], the site is loaded ok, withouth any problems.
DNS zone shows:
Code: ; cPanel 11.11.0-BETA_16977 ; Zone file for site.com $TTL 14400 @ 86400 IN SOA mydns1.wolo.com. admin.hostingserver.com. ( 2007092601 ; serial, todays date+todays 86400 ; refresh, seconds 7200 ; retry, seconds 3600000 ; expire, seconds 86400 ) ; minimum, seconds
site.com. 86400 IN NS mydns1.wolo.com. site.com. 86400 IN NS mydns2.wolo.com.
site.com. IN A IP_ADDRESS
localhost.site.com. IN A 127.0.0.1
site.com. IN MX 0 site.com.
mail IN CNAME site.com. www IN A IP_ADDRESS ftp IN A IP_ADDRESS Apache virtual host code
I set up a domain in plesk 8 (LAMP), but the www version of the domain doesn't resolve via the browser, wheras the non-www version does. I set the nameservers (and glue records) yesterday.
Why might this be? Could this be due to dns propagation?
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 { localhost; }; 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 "internal" { /* This view will contain zones you want to serve only to "internal" clients that connect via your directly attached LAN interfaces - "localnets" . */ match-clients { localnets; }; match-destinations { localnets; }; 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 "authoritative" 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: */ match-clients { !localnets; !localhost; }; match-destinations { !localnets; !localhost; };
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 With
Code: include "/etc/rndc.key";
controls { inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; }; }; And then goto bottom of the file and remove
}; at the bottom .
Save file and exit
then test config service named configtest if you have done this correctly , it should display something like this:
zone blue.xxx.com/IN: loaded serial 2007070901 zone xxx.com/IN: loaded serial 2007070906 zone ns1.xxx.com/IN: loaded serial 2007070901 zone server.xxx.com/IN: loaded serial 2007071001 zone xxx.net/IN: loaded serial 2007071001
The following error was encountered: Unable to determine IP address from host name for www.gbn.ge The dnsserver returned: Server Failure: The name server was unable to process this query. This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
Your cache administrator is webmaster.
Generated Wed, 16 Apr 2008 13:13:49 GMT by proxy.geonet.ge (squid/2.6.STABLE19)
I added a AAAA ipv6 zone to my dns the idea was to run the SPF validation by google (who checked the ipv6 and not ipv4 (??) )Out today I have a client who called me and because it can no longer connect to my site...I take his computer in hand by teamviewer and actually the ping of my domain solves the ipv6 not ipv4 in the management of IP in plesk I
therefore 187 sites under the ipv4 and ipv6 0 on..I actually do not care about ipv6, it's just for spf..I lack some knowledge with dns I think...must I do something on dns to indicate that ipv4 is that actually hosts the site? or at plesk for all requests to be redirected to the ipv6 on ipv4?
how many domains can be allocated on one server and run correctly without any issues? And what would be the best technical specification for the server?
how many domains can I host on server with 1GB RAM, 2x250GB HDD SATA, 3Ghz CPU?