No "e" at the end.... /etc/resolv.conf :)
Try editing the DNS entries in your ifcfg-eth0 file. I think this will make your resolv.conf hold after reboot. Basically the ONLY thing you need to edit will be the DNS1 and DNS2 entries. I'm listing the entire file (with IPs, etc. redacted) so you can compare the options in yours to mine (which is also CentOS 7.2 on Digital Ocean hosting). You should have all the same options. /etc/sysconfig/network-scripts/ifcfg-eth0 [root@mail network-scripts]# cat ifcfg-eth0 DEVICE='eth0' TYPE=Ethernet BOOTPROTO=none ONBOOT='yes' HWADDR= <---- leave this as YOUR address! IPADDR= <--- leave this as YOUR IP address!! NETMASK= <--- leave this as what it is set at for your server!! GATEWAY= <--- leave this as what it is set at for your server! NM_CONTROLLED='yes' IPADDR2= <-- leave this as what it is set at for your server! PREFIX2=16 DNS1=8.8.8.8 <-- CHANGE your DNS1 to this DNS2=8.8.4.4 <-- CHANGE your DNS2 to this Once you've edited your ifcfg-eth0 file, edit your resolv.conf file, then try rebooting and see if it holds. From: David Overman <[email protected]> Reply-To: <[email protected]> Date: Wednesday, November 30, 2016 at 9:48 AM To: <[email protected]> Subject: Re: [qmailtoaster] Whoops! Not receiving mail. tried again. putting v4 nameservers i then executed systemctl restart network. now i get this: [root@mail ~]# cat /etc/resolve.conf cat: /etc/resolve.conf: No such file or directory same thing on reboot-or if the file is there, it's ipv6 David On Nov 30, 2016, at 08:32 AM, Jaime Lerner <[email protected]> wrote: > Once again, that's in your /etc/resolv.conf file. > > Make sure it says the following in it: > > nameserver 8.8.8.8 > > nameserver 8.8.4.4 > > > From: David Overman <[email protected]> > Reply-To: <[email protected]> > Date: Wednesday, November 30, 2016 at 7:59 AM > To: <[email protected]> > Subject: Re: [qmailtoaster] Whoops! Not receiving mail. > > No, I was looking in qmail logs, but when I did, guess what reared it's ugly > head? > > spamdyke[30082]: ERROR: invalid/unparsable nameserver found: > 2001:4860:4860::8844 > > > On Nov 30, 2016, at 06:50 AM, Jaime Lerner <[email protected]> > wrote: > >> Did you check /var/log/maillog to see if it was received but maybe denied >> delivery for some reason? >> >>> On Nov 30, 2016, at 6:44 AM, David Overman <[email protected]> wrote: >>> >>> After getting squirellmail and roundcube working, I decided to test the >>> primary function of the site sending/receiving emails. I successfully sent >>> an email to an outside account, but I never recieved the reply from that >>> account.Looked in Mialdir and did not receive a bounce either. How do you >>> test courier, I did try to telnet 993, which connected and then dropped when >>> i said ehlo. >>> >>> David >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >>
