質問

I am trying to set up an apache server on my RHEL6.4 vm and can't because dnsmasq can't recognize the hostname for some reason:

nslookup rhel64.example.com
Server:         xxx.xxx.xx.1
Address:        xxx.xxx.xx.1#53

** server can't find rhel64.exmple.com: NXDOMAIN

/etc/hosts

xxx.x.x.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

/etc/resolv.conf

; generated by /sbin/dhclient-script
search novalocal example.com
nameserver xxx.xxx.xx.1

Please let me know if there is anything you need to see to solve my problem. I cannot use a different dns server.

Looking for a way to make dnsmasq resolve the hostname without changing dns servers.

役に立ちましたか?

解決 2

DNS client was never initiated when the virtual machine booted up

他のヒント

Can you output your /etc/sysconfig/iptables, /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top