Editing
Msg11425.html
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= [Vserver] BIND (named) and "lo" interface inside vserver = ----- * '''From:''' Dmitry Koterov * '''Date:''' Tue, 15 Nov 2005 14:59:23 +0100 (CET) ----- <pre>Hello. Shortly: when I use BIND (or PowerDNS) inside vserver listening ALL addresses (0.0.0.0), nslookup to server 127.0.0.1 shows error message "reply from unexpected source: 213.248.62.106#53, expected 127.0.0.1#53" Long description. I have installed linux-vserver (named "zulu") on kernel 2.6.12.5 and set up one real IP for it - 213.248.62.106: [root@zulu /]# ifconfig eth0 Link encap:Ethernet HWaddr 00:30:48:75:13:D2 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:39623139 errors:0 dropped:0 overruns:0 frame:0 TX packets:18575687 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:50148146621 (46.7 GiB) TX bytes:1249870165 (1.1 GiB) Base address:0x3000 Memory:dd300000-dd320000 eth0:zulu Link encap:Ethernet HWaddr 00:30:48:75:13:D2 inet addr:213.248.62.106 Bcast:213.248.62.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Base address:0x3000 Memory:dd300000-dd320000 First question: why doesn't ifconfig show "lo" interface? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Then, I installed named (BIND), compiled it with --disable-linux-caps before. BIND listens on all IP addresses inside vserver: [root@zulu /]# netstat -na Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 213.248.62.106:53 0.0.0.0:* LISTEN udp 0 0 213.248.62.106:53 0.0.0.0:* ... Then I try nslookup: [root@zulu /]# nslookup > server 127.0.0.1 Default server: 127.0.0.1 Address: 127.0.0.1#53 > hostmag.ru. ;; reply from unexpected source: 213.248.62.106#53, expected 127.0.0.1#53 ;; reply from unexpected source: 213.248.62.106#53, expected 127.0.0.1#53 Second question: what's wrong? Why BIND tries to answer from vserver IP address, but NOT from localhost which I used? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I have also tried PowerDNS instead of BIND - absolutely same effect. I do not want to write 213.248.62.106 in my resolv.conf, because this IP may be changed one fine day, or vserver will be moved to another machine. Seems networking stack isolation in linux-vserver is not finished yet? -- B.r, Dmitry Koteroff Chief programmer, http://host-ing.ru </pre> ----- * '''Follow-Ups''': ** '''[[msg11427.html|Re: [Vserver] BIND (named) and "lo" interface inside vserver]]''' *** ''From:'' Dennis Roos * Prev by Date: '''[[msg11424.html|Re: [Vserver] (bind-)mount tmpfs into VServer?]]''' * Next by Date: '''[[msg11427.html|Re: [Vserver] BIND (named) and "lo" interface inside vserver]]''' * Previous by thread: '''[[msg11423.html|[Vserver] Strange error when stopping a vserver]]''' * Next by thread: '''[[msg11427.html|Re: [Vserver] BIND (named) and "lo" interface inside vserver]]''' * Index(es): ** [[index.html#11425|'''Date''']] ** [[threads.html#11425|'''Thread''']]
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information