• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1862
  • Last Modified:

name resolution not resolving

Hi,

I'm getting this error:

 [Tue Nov 01 01:02:43 2011] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name dermcme.net -- ignoring!
 ... waiting [Tue Nov 01 01:02:44 2011] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name dermcme.net -- ignoring!

Open in new window


I have this in my default virtual host:

<VirtualHost dermcme.net:80>
        ServerAdmin webmaster@localhost
		ServerAlias www.dermcme.net
        DocumentRoot /var/www/dermcme
		
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/dermacme/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/dermcme.net-access.log combined
</VirtualHost>

Open in new window


Is this a BIND problem? I'm on a VPS with Spry. It's Ubuntu.

Thanks,
Victor
0
Victor Kimura
Asked:
Victor Kimura
  • 2
  • 2
3 Solutions
 
savoneCommented:
When I dig the domain dermcme.net I get a SERVFAIL so I am going with BIND problem.


[savona@bighat ~]$ dig dermcme.net

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> dermcme.net
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 64433
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;dermcme.net.                   IN      A

;; Query time: 0 msec
;; SERVER: 10.0.0.2#53(10.0.0.2)
;; WHEN: Mon Oct 31 21:30:42 2011
;; MSG SIZE  rcvd: 29
0
 
PapertripCommented:
Are you trying to do IP or named virtual hosting?  Do you have a config line for 'NameVirtualHost' ?  I notice ServerName is also missing.

Aside from that, either add a DNS record for dermcme.net, or add an entry to /etc/hosts

Substitute the IP 1.2.3.4 with the IP of your webserver.
echo "1.2.3.4 dermcme.net" >> /etc/hosts

Open in new window

0
 
Victor KimuraAuthor Commented:
Hi Papertrip,

What do I ad to the config line for "NameVirtualHost'?
What's the ServerName line command? It's the in the VirtualHost config file I assume.

I guess I need to contact Spry to add the DNS record? The DNS is pointing to their DNS ns1.spry.com and ns2.spry.com. Is it possible for me to change the DNS with my own BIND server on the VPS with spry? If so, any good references to change the DNS settings. I found some before but I forgot the links.

Thanks
0
 
PapertripCommented:
I suggest reading the following documents to make sure your Apache is configured properly to do vhosts with your setup.  Without knowing all of the details, it's hard for me to answer your questions.

http://httpd.apache.org/docs/2.0/vhosts/
http://httpd.apache.org/docs/2.0/vhosts/name-based.html
http://httpd.apache.org/docs/2.0/vhosts/ip-based.html
http://httpd.apache.org/docs/2.0/vhosts/examples.html
http://httpd.apache.org/docs/2.0/mod/core.html#servername

After scanning over those links you should be able to confirm if you have your vhosts setup properly for your needs.  Once you get those basics down I can help with minor details, but you should be good to go after reading those links.

I guess I need to contact Spry to add the DNS record? The DNS is pointing to their DNS ns1.spry.com and ns2.spry.com.
Correct, it looks like you have no records at all setup at ns1/2.spry.com, but the glue records for your domain to point to them so that part is done.  If you want Spry to handle your DNS, then you need to update your DNS records through them.  I found this link explaining DNS+Spry, but I have never used Spry so I have no first hand knowledge of their particular interface.

Is it possible for me to change the DNS with my own BIND server on the VPS with spry?
Absolutely.  This link appears to help guide you throug changing nameservers for domains registered through Spry.  If you want more specific advice for setting up BIND, please open a new question and myself or other experts will help you out.

0
 
Victor KimuraAuthor Commented:
Thanks fellows. Those links were really helpful, Papertrip.
0

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now