I have a server that has 2 domains pointing to it domain1.com and domain2.com.

They both use the same name servers: dns1.vps.net and dns2.vps.net.

When I run cat resolv.conf

This is its contents:

# Automatically generated by OnApp (2.0.rc5.i)    
domain
nameserver 8.8.8.8
nameserver 8.8.4.4

What should actually be in here?

EDIT

I asked this question

They told me to look at my /var/log/mail.log and that it was probably because my resolv.conf was not configured right.

In the log it says:

Feb 10 18:01:02 my-domain sm-msp-queue[7933]: unable to qualify my own domain name (my-domain) -- using short name

I think this is why the server lags for about 60 seconds every time I try to send email from PHP.

link|improve this question

70% accept rate
1  
What problem do you have? The IPs listed in your resolv.conf are google's public DNS servers, I don't see nothing wrong there. But I still don't get your problem/question ? – rems Feb 10 '11 at 18:10
2  
I see no problem with the contents of your resolv.conf file, can you rephrase your question in the form of "X does not work, how can I fix it?" :-) – voretaq7 Feb 10 '11 at 18:14
@rems @voretaq7 I edited my question, is it better now? – John Isaacks Feb 10 '11 at 18:19
feedback

2 Answers

up vote 2 down vote accepted

Check that you have a fully qualified name (dev-kranichs.domain.something) for 127.0.0.1 in your /etc/hosts.

You should have a line looking similar to

127.0.0.1   dev-kranichs.domain.something   dev-kranichs


127.0.0.1   dev-kranichs.local   dev-kranichs

could be enough.

link|improve this answer
I have to lines in my hosts file 127.0.0.1 localhost and 216.119.xxx.xxx dev-kranichs dev-kranichs. (those x's are actually numbers) The domain is actually dev-kranichs.com is that what you meant by .domain.something? Also my other domain dev-other.com is not in there at all, shouldn't it be too? Thanks!! – John Isaacks Feb 10 '11 at 18:37
I added both domains to 127.0.0.1 and 216.119.xxx.xxx with and without .com and I restarted apache. It no longer lags when I send the email. However, I did get this error when I restarted: ` Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName` Do not know what that means. – John Isaacks Feb 10 '11 at 18:43
feedback

Those are DNS server IPs used by your server to resolve DNS names as much as I know.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.