DNSMASQ रूट किए गए सबनेट से DNS प्रश्नों का उत्तर नहीं दे रहा है


3

मेरे पास दो DD-WRT APs का उपयोग करके एक साथ दो उप-नेट्स जुड़े हैं - दूरस्थ AP क्लाइंट-राउट मोड में है, इसलिए इसका एक अलग सबनेट है इसका IP 192.168.2.1/24 और 192.168.0.5/24 है। स्थानीय एपी एपी मोड में है डीडी-डब्ल्यूआरटी डीएचसीपी सेटिंग्स दूरस्थ एपी के लिए आगे मोड में हैं

आईपी ​​192.168.0.2/24 पर पहले सबनेट के भीतर मेरे पास DNSMASQ सेटअप है। यह दूसरे सबनेट के लिए डीएचसीपी सर्वर भी है - यह काम करता है और मेरे रिमोट क्लाइंट को सही राउटर मिलता है। DNSMasq मशीन दूसरे सबनेट पर पीसी को पिंग कर सकती है और रिवर्स भी सही है। मैं पहले सबनेट पर पीसी से पीसी को दूसरे सबनेट पर भी आरडीपी कर सकता हूं - इसलिए यह मुझे पहली से दूसरी सबमर्स कॉम्पट में दिखाई देता है। काम कर रहे

मेरी समस्या DNSMasq दूसरे सबनेट में DNS उत्तर नहीं भेजती है - यह पहले सबनेट पर काम करता है। क्या कोई सुझाव दे सकता है क्यों?

एक बात का ध्यान रखें कि दूसरे नेटवर्क के लिए मार्ग गेटवे डिवाइस (192.168.0.1) पर था, लेकिन मैंने पाया कि इसने कई पैकेट गिराए हैं - इसलिए पहले उप-नेट डिवाइसों में से प्रत्येक में दूसरे सबनेट के लिए एक स्थानीय स्थिर मार्ग जोड़ा गया है। यह।

route add 192.168.2.0 mask 255.255.255.0 192.168.0.5

मुझे अपनी वर्तमान समस्या के कारण इस बिंदु पर डीएचसीपी सौंपे गए मार्ग का परीक्षण करना बाकी है

यह मेरे पास एक स्केच है स्केच नेटवर्क

DNSMASQ कॉन्फ़िगरेशन

# Configuration file for dnsmasq.
domain-needed
bogus-priv
addn-hosts=/etc/dnsmasq.hosts
# so don't use it if you use eg Kerberos, SIP, XMMP or Google-talk. This option only affects forwarding, SRV records originating for dnsmasq (via srv-host= lines) are not
# suppressed by it.
filterwin2k

dhcp-range=set:house,192.168.0.1,192.168.0.254,infinite
dhcp-range=set:backyard,192.168.2.1,192.168.2.254,infinite

# Change this line if you want dns to get its upstream servers from somewhere other that /etc/resolv.conf
resolv-file=/var/run/dnsmasq/resolv.conf
# server=61.9.134.49
# server=61.9.133.193 setup the default gateway
dhcp-option=tag:house,option:router,192.168.0.1
dhcp-option=tag:backyard,option:router,192.168.2.1

# option 42?
dhcp-option=option:ntp-server,192.168.0.2
expand-hosts
domain=wilson.lan
dhcp-range=192.168.0.100,192.168.0.150,12h
dhcp-range=192.168.2.100,192.168.2.150,255.255.255.0,12h


# DO NOT Set The route to that network Done on Gateway
#dhcp-option=121,192.168.2.0/24,192.168.0.5
#Send microsoft-specific option to tell windows to release the DHCP lease when it shuts down. Note the "i" flag,
#  to tell dnsmasq to send the value as a four-byte integer - that's what microsoft wants. See
# http://technet2.microsoft.com/WindowsServer/en/library/a70f1bb7-d2d4-49f0-96d6-4b7414ecfaae1033.mspx?mfr=true
dhcp-option=vendor:MSFT,2,1i
# Set the DHCP server to authoritative mode. In this mode it will barge in and take over the lease for any client
# which broadcasts on the network, whether it has a record
# of the lease or not. This avoids long timeouts when a machine wakes up on a new network.
# DO NOT enable this if there's the slightest chance that you might end up
# accidentally configuring a DHCP server for your campus/company accidentally.
# The ISC server uses the same option, and this URL provides more information:
# http://www.isc.org/files/auth.html
dhcp-authoritative
# Log lots of extra information about DHCP transactions.
log-dhcp

मैंने दूसरे सबनेट पर भी that. and. that. second से एक nslookup की कोशिश की और वह काम करता है -
रॉस

जवाबों:


4

ठीक है, इसलिए मैनुअल को बेहतर तरीके से पढ़ने के बाद मुझे केवल स्थानीय उप-नेट्स (-लोकल-सर्विस) के डिफ़ॉल्ट विकल्प को ओवरराइड करने के लिए किसी चीज़ में जोड़ना होगा, एक डिफ़ॉल्ट विकल्प, जिसका कोई नकार नहीं है, उदाहरण के लिए मैंने कोशिश की थी

listen-address=192.168.0.2

हालाँकि, जैसा कि res.conf की लाइन है

nameserver 127.0.0.1

मेरे परिवर्तन ने DNSMASQ को अपने आप से प्रश्नों का उत्तर देना बंद कर दिया - इतना विचित्र रूप से DNS सर्वर अब किसी भी dns नाम को हल नहीं कर सका जबकि अन्य सभी मशीनें सफलतापूर्वक इसे dns सर्वर के रूप में उपयोग कर रही थीं। मैंने इसके बजाय निम्नलिखित पंक्ति जोड़कर इसे ठीक किया

listen-address=192.168.0.2,127.0.0.1

के रूप में मैं क्या एक हल करने के लिए एक आसान तरीका नहीं कर सकता था कि क्या समाधान है


आर्क विकी इसका उल्लेख करता है, यद्यपि विवरण पर कुछ अस्पष्ट है, यहां: wiki.archlinux.org/index.php/dnsmasq
जोनाथन

धन्यवाद, मैं लिनक्स के विभिन्न जायके कि मुझे बताओ कि इस मूल समस्या को ठीक करने के लिए प्रकट होता है में लेख की तलाश के बारे में सोच नहीं किया, यह भी dhcpd एक संभव अपराधी है कहने लगता है, हालांकि मुझे लगता है कि का उपयोग नहीं कर रहा हूँ
रॉस
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.