Linux Netfilter discussions
 help / color / mirror / Atom feed
* How can I get rules with all resolved IPs for FQDN?
@ 2011-04-21  9:04 Brian Lu
  2011-04-21 10:40 ` Jan Engelhardt
  2011-04-22 11:00 ` /dev/rob0
  0 siblings, 2 replies; 12+ messages in thread
From: Brian Lu @ 2011-04-21  9:04 UTC (permalink / raw)
  To: netfilter

Hi All
I am having a problem about not all FQDN can work for iptables commands .
If I run an iptable command for www.google.com , it can work fine.
I can find 6 rules from the rules table.
[root@localhost iptables-1.3.5]# nslookup www.google.com
Server:         168.95.1.1
Address:        168.95.1.1#53

Non-authoritative answer:
www.google.com  canonical name = www.l.google.com.
Name:   www.l.google.com
Address: 64.233.183.104
Name:   www.l.google.com
Address: 64.233.183.105
Name:   www.l.google.com
Address: 64.233.183.106
Name:   www.l.google.com
Address: 64.233.183.147
Name:   www.l.google.com
Address: 64.233.183.99
Name:   www.l.google.com
Address: 64.233.183.103

If I run an iptable command for www.facebook.com , it can't work fine.
I can only find a rule from the rules table. 

[root@localhost iptables-1.3.5]# nslookup www.facebook.com
Server:         168.95.1.1
Address:        168.95.1.1#53

Non-authoritative answer:
Name:   www.facebook.com
Address: 69.171.224.12

[root@localhost iptables-1.3.5]# nslookup www.facebook.com
Server:         168.95.1.1
Address:        168.95.1.1#53

Non-authoritative answer:
Name:   www.facebook.com
Address: 69.171.224.11

[root@localhost iptables-1.3.5]# nslookup www.facebook.com
Server:         168.95.1.1
Address:        168.95.1.1#53

Non-authoritative answer:
Name:   www.facebook.com
Address: 66.220.149.11

[root@localhost iptables-1.3.5]# nslookup www.facebook.com
Server:         168.95.1.1
Address:        168.95.1.1#53

Non-authoritative answer:
Name:   www.facebook.com
Address: 66.220.158.25

[root@localhost iptables-1.3.5]# nslookup www.facebook.com
Server:         168.95.1.1
Address:        168.95.1.1#53

Non-authoritative answer:
Name:   www.facebook.com
Address: 66.220.146.25

How can I get rules with all resolved IPs for this kind of FQDN?
Any suggestions will be appreciated!!! 

Best regards, 
Brian Lu

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-04-25  2:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-21  9:04 How can I get rules with all resolved IPs for FQDN? Brian Lu
2011-04-21 10:40 ` Jan Engelhardt
2011-04-22  7:19   ` Lu Brian
2011-04-22  9:22     ` Jan Engelhardt
2011-04-22 10:05       ` Lu Brian
2011-04-22 10:08         ` Jan Engelhardt
2011-04-22 10:35           ` Lu Brian
2011-04-22 10:52             ` Jan Engelhardt
2011-04-22 11:00 ` /dev/rob0
2011-04-22 12:31   ` Pandu Poluan
2011-04-25  1:56     ` Lu Brian
2011-04-25  2:04   ` Lu Brian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox