Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You shouldn't ever have to specifically allow hostname lookups. Your system will automatically put an entry into iptables that will allow communication with your nameservers. If you CAN connect via the ip address, then it sounds like you have misconfigured the ip addresses of your DNS servers. Check /etc/resolve.conf and make sure that your system has proper entries for the nameservers. Alternatively, you might have a dhcp problem.
Last edited by Capt_Caveman; 09-01-2003 at 11:22 AM.
needless to say, i'm having the same problem, but adding the OUTPUT rule doesn't fix it for me.
my linux box is connected up to a windows 2003 server, which is the DNS server. when i have iptables off, i can ping my linux box using the hostname (in my case it is ubuntu).
the 2003 server is located at 192.168.100.1, which is in my resolv.conf.
here's what iptables -L displays:
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 192.168.100.0/24 anywhere
ACCEPT all -- 192.168.101.0/24 anywhere
i can ping using the IP address no problem, but when iptables is on, and i try to ping using the hostname, it doesn't work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.