Home » General » Support » *SOLVED* DNS lookup not working inside the VPS
Re: DNS lookup not working inside the VPS [message #12187 is a reply to message #12178] |
Thu, 19 April 2007 15:01   |
bfullmer
Messages: 7 Registered: April 2007
|
Junior Member |
|
|
NODE:
[root@ut-ve0001 ~]# /sbin/iptables -L -nv
Chain INPUT (policy ACCEPT 79722 packets, 110M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 3114 packets, 364K bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 44684 packets, 3034K bytes)
pkts bytes target prot opt in out source destination
[root@ut-ve0001 ~]# /sbin/iptabes -t nat -L -nv
-bash: /sbin/iptabes: No such file or directory
[root@ut-ve0001 ~]# /sbin/ip a l
2: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:20:ed:05:58:2a brd ff:ff:ff:ff:ff:ff
inet 192.168.15.201/24 brd 192.168.15.255 scope global eth0
6: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:20:ed:05:58:2b brd ff:ff:ff:ff:ff:ff
inet 209.41.77.226/28 brd 209.41.77.239 scope global eth1
inet6 fe80::220:edff:fe05:582b/64 scope link
valid_lft forever preferred_lft forever
8: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
1: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,10000> mtu 1500 qdisc noqueue
link/void
[root@ut-ve0001 ~]# /sbin/ip r l
209.41.77.236 dev venet0 scope link src 209.41.77.226
209.41.77.224/28 dev eth1 proto kernel scope link src 209.41.77.226
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.201
169.254.0.0/16 dev eth1 scope link
default via 209.41.77.225 dev eth1
[root@ut-ve0001 ~]#
inside VE 1010
[root@ut-ve0001 ~]# vzctl enter 1010
entered into VE 1010
[root@vps1010 /]# ping yahoo.com
ping: unknown host yahoo.com
[root@vps1010 /]# exit
logout
exited from VE 1010
[root@ut-ve0001 ~]# /sbin/iptables -L -nv
Chain INPUT (policy ACCEPT 79722 packets, 110M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 3114 packets, 364K bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 44684 packets, 3034K bytes)
pkts bytes target prot opt in out source destination
[root@ut-ve0001 ~]# /sbin/iptabes -t nat -L -nv
-bash: /sbin/iptabes: No such file or directory
[root@ut-ve0001 ~]# /sbin/ip a l
2: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:20:ed:05:58:2a brd ff:ff:ff:ff:ff:ff
inet 192.168.15.201/24 brd 192.168.15.255 scope global eth0
6: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:20:ed:05:58:2b brd ff:ff:ff:ff:ff:ff
inet 209.41.77.226/28 brd 209.41.77.239 scope global eth1
inet6 fe80::220:edff:fe05:582b/64 scope link
valid_lft forever preferred_lft forever
8: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
1: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,10000> mtu 1500 qdisc noqueue
link/void
[root@ut-ve0001 ~]# /sbin/ip r l
209.41.77.236 dev venet0 scope link src 209.41.77.226
209.41.77.224/28 dev eth1 proto kernel scope link src 209.41.77.226
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.201
169.254.0.0/16 dev eth1 scope link
default via 209.41.77.225 dev eth1
[root@ut-ve0001 ~]#
[root@ut-ve0001 ~]# vzctl enter 1010
entered into VE 1010
[root@vps1010 /]# /sbin/iptables -L -nv
Chain INPUT (policy ACCEPT 1489 packets, 135K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1559 packets, 225K bytes)
pkts bytes target prot opt in out source destination
[root@vps1010 /]# /sbin/iptabes -t nat -L -nv
-bash: /sbin/iptabes: No such file or directory
[root@vps1010 /]# /sbin/ip a l
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,10000> mtu 1500 qdisc noqueue
link/void
inet 127.0.0.1/32 scope host venet0
inet 209.41.77.236/32 brd 209.41.77.236 scope global venet0:0
[root@vps1010 /]# /sbin/ip r l
192.0.2.0/24 dev venet0 scope host
169.254.0.0/16 dev venet0 scope link
default via 192.0.2.1 dev venet0
[root@vps1010 /]#
/bin/ping 216.194.124.21
PING 216.194.124.21 (216.194.124.21) 56(84) bytes of data.
64 bytes from 216.194.124.21: icmp_seq=1 ttl=63 time=1.62 ms
64 bytes from 216.194.124.21: icmp_seq=2 ttl=63 time=0.428 ms
--- 216.194.124.21 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.428/1.028/1.628/0.600 ms
[root@ut-ve0001 ~]# vzlist
VEID NPROC STATUS IP_ADDR HOSTNAME
1010 17 running 209.41.77.236 vps1010.tele-bridge.net
[root@ut-ve0001 ~]# vzctl enter 1010
entered into VE 1010
[root@vps1010 /]# /bin/ping 216.194.124.21
PING 216.194.124.21 (216.194.124.21) 56(84) bytes of data.
64 bytes from 216.194.124.21: icmp_seq=1 ttl=62 time=1.61 ms
64 bytes from 216.194.124.21: icmp_seq=2 ttl=62 time=0.408 ms
64 bytes from 216.194.124.21: icmp_seq=3 ttl=62 time=0.499 ms
--- 216.194.124.21 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.408/0.841/1.616/0.549 ms
[root@vps1010 /]#
[root@vps1010 /]# cat /etc/resolv.conf
nameserver 216.194.124.21
[root@vps1010 /]# ping yahoo.com
ping: unknown host yahoo.com
It should work! I can't figure out what is going on.
[Updated on: Fri, 20 April 2007 03:32] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Aug 21 10:01:26 GMT 2025
Total time taken to generate the page: 0.06000 seconds
|