CentOS 6.4, clean install. Zimbra 8.0.3 I am behind a PfSense box using a virtual IP. So the IP of the box is 192.168.1.27 I entered this in /etc/hosts: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.27 mail mail.meowbox.me meowbox.me but `hostname -f` says: $ hostname -f hostname: Unknown host Do I need to put the public IP for where this record resolves? Since PFSense is forwarding traffic from it to the virtual IP? Jason
Jason T. Slack-Moehrle wrote:> CentOS 6.4, clean install. > Zimbra 8.0.3 > > I am behind a PfSense box using a virtual IP. So the IP of the box is > 192.168.1.27 > > I entered this in /etc/hosts: > > 127.0.0.1 localhost localhost.localdomain localhost4 > localhost4.localdomain4 > ::1 localhost localhost.localdomain localhost6 > localhost6.localdomain6 > 192.168.1.27 mail mail.meowbox.me meowbox.me > > but `hostname -f` says: > > $ hostname -f > hostname: Unknown host > > Do I need to put the public IP for where this record resolves? Since > PFSense is forwarding traffic from it to the virtual IP?Quick check: is the hostname showing in /var/log/messages? If not, did you either reboot the box, or set the hostname manually, or restart the network? It won't take effect until you do one of those. mark
On 4/8/2013 11:17 AM, Jason T. Slack-Moehrle wrote:> but `hostname -f` says: > > $ hostname -f > hostname: Unknown hostput the hostname in /etc/sysconfig/network, as .. HOSTNAME=full.domain.name.com example... $ more /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=hostname.mydomain.com GATEWAY=x.y.w.x -- john r pierce 37N 122W somewhere on the middle of the left coast
John, Weird question, but if web and e-mail are going to be on the same box. Do I need to do mail.hostname.tld or can I just to hostname.tld? For the MeowBox.me domain. for DNS A-record: @ is the public IP A-record mail is the public IP. Mx record is 0 mail mail.meowbox.me On Mon, Apr 8, 2013 at 11:46 AM, John R Pierce <pierce at hogranch.com> wrote:> On 4/8/2013 11:17 AM, Jason T. Slack-Moehrle wrote: > > but `hostname -f` says: > > > > $ hostname -f > > hostname: Unknown host > > put the hostname in /etc/sysconfig/network, as .. > > HOSTNAME=full.domain.name.com > > example... > > $ more /etc/sysconfig/network > NETWORKING=yes > NETWORKING_IPV6=no > HOSTNAME=hostname.mydomain.com > GATEWAY=x.y.w.x > > > -- > john r pierce 37N 122W > somewhere on the middle of the left coast > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
On 4/8/2013 11:52 AM, Jason T. Slack-Moehrle wrote:> Weird question, but if web and e-mail are going to be on the same box. Do I > need to do mail.hostname.tld or can I just to hostname.tld? > > For the MeowBox.me domain. > for DNS A-record: @ is the public IP > A-record mail is the public IP. > > Mx record is 0 mail mail.meowbox.methe FQDN hostname can be whatever. -- john r pierce 37N 122W somewhere on the middle of the left coast
Thanks everyone for all of the help, I appreciate it. On Mon, Apr 8, 2013 at 12:09 PM, John R Pierce <pierce at hogranch.com> wrote:> On 4/8/2013 11:52 AM, Jason T. Slack-Moehrle wrote: > > Weird question, but if web and e-mail are going to be on the same box. > Do I > > need to do mail.hostname.tld or can I just to hostname.tld? > > > > For the MeowBox.me domain. > > for DNS A-record: @ is the public IP > > A-record mail is the public IP. > > > > Mx record is 0 mail mail.meowbox.me > > the FQDN hostname can be whatever. > > -- > john r pierce 37N 122W > somewhere on the middle of the left coast > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >