LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2020, 07:11 PM   #1
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,140

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Misconfiguration of dnsmasq?


My dnsmasq works normally most of the time, I thought. Today when my internet went down my Kodi installations were moving like molasses (only local content). After awhile I tried putting the ip of my sql server / mythtv backend instead of their fqdn (below in /etc/hosts) and that fixed it. Kodi moves real fast, fully loaded and ready within 10 seconds of starting it. All art, selecting something and it plays instantly. Before, even with my internet on it was a bit of a waiting game.

TLDR - Maybe I just have stuff in the wrong order. Ultimately when the internet went down my dns resolution for local went to crap.

/etc/dnsmasq.conf - I left out my statics with dhcp-host lines.

Code:
# Dns
port=53
domain-needed
bogus-priv
strict-order
expand-hosts
domain=mylan.home
# DHCP
dhcp-range=192.168.1.100,192.168.1.220,255.255.255.0,24h
dhcp-option=option:router,192.168.1.1
dhcp-option=option:dns-server,192.168.1.2
dhcp-option=option:netmask,255.255.255.0

# TFTP
enable-tftp
tftp-root=/srv/tftp

# LTSP

# Set some tags to be able to separate client settings later on.
# "39" means "recent iPXE with menu support": http://ipxe.org/howto/dhcpd
dhcp-match=set:iPXE,175,39
dhcp-match=set:X86PC,option:client-arch,0
dhcp-match=set:X86-64_EFI,option:client-arch,7
# Due to rfc4578 errata, sometimes BC_EFI=9 is misused instead of X86-64_EFI=7:
dhcp-match=set:X86-64_EFI,option:client-arch,9
dhcp-mac=set:rpi,b8:27:eb:*:*:*
dhcp-mac=set:rpi,dc:a6:32:*:*:*

# In proxy DHCP mode, the server ONLY sends its IP and the following filename.
# Service types: man dnsmasq or https://tools.ietf.org/html/rfc4578#section-2.1
# PXE services in non proxy subnets sometimes break UEFI netboot, so tag:proxy.
pxe-service=tag:proxy,tag:!iPXE,X86PC,"undionly.kpxe",ltsp/undionly.kpxe
pxe-service=tag:proxy,tag:!iPXE,X86-64_EFI,"snponly.efi",ltsp/snponly.efi
pxe-service=tag:proxy,tag:iPXE,X86PC,"ltsp.ipxe",ltsp/ltsp.ipxe
pxe-service=tag:proxy,tag:iPXE,X86-64_EFI,"ltsp.ipxe",ltsp/ltsp.ipxe
pxe-service=tag:rpi,X86PC,"Raspberry Pi Boot   ",unused

# Specify the boot filename for each tag, relative to tftp-root.
# If multiple lines with tags match, the last one is used.
# See: https://www.syslinux.org/wiki/index.php?title=PXELINUX#UEFI
dhcp-boot=tag:!iPXE,tag:X86PC,ltsp/undionly.kpxe
dhcp-boot=tag:!iPXE,tag:X86-64_EFI,ltsp/snponly.efi
dhcp-boot=tag:iPXE,ltsp/ltsp.ipxe
/etc/resolv.conf

Code:
nameserver 192.168.1.2
nameserver 8.8.8.8
nameserver 8.8.4.4
/etc/hosts

Code:
127.0.0.1	localhost
127.0.1.1	server

# dns for dnsmasq
# routers
192.168.1.1	main.router.mylan.home
192.168.1.252	peterson.router.mylan.home

# main server

192.168.1.2	megalith.mylan.home
192.168.1.2	print.mylan.home
192.168.1.2	proxy.mylan.home
192.168.1.2	sql.mylan.home
192.168.1.2	mythtv.mylan.home
192.168.1.2	mc.ourplace.mylan.home

# access points
192.168.1.249	north.west.mylan.home
192.168.1.248	west.north.mylan.home

# printers
192.168.1.38	printer.mylan.home
192.168.1.39	laser.mylan.home

# kodi
192.168.1.237	kodilib.mylan.home
192.168.1.237	kodi.lib.mylan.home
192.168.1.40	kodi.mbr.mylan.home
192.168.1.41	kodi.gst.mylan.home
192.168.1.42	homewrecker.mylan.home
192.168.1.43	kodi.main.mylan.home

# testing machines
192.168.1.44	optiplex.mylan.home

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Last edited by jmgibson1981; 11-10-2020 at 07:17 PM.
 
Old 11-12-2020, 01:41 PM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,140

Original Poster
Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Followed the instructions under the DNS server section where it applied to my lan. https://wiki.archlinux.org/index.php/dnsmasq

Changed back to fqdn's and my local resolution is wonderful. Kodi is loading instantly and I have zero lag time on any local lookups.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS misconfiguration or what is wrong here? rebayona Linux - Networking 10 09-27-2005 04:32 AM
suspected misconfiguration of my LFS system because of it's slowness. qanopus Linux - General 1 11-02-2003 11:46 PM
Help!! X restart due to faulty installation steps of radeon9200 and misconfiguration prctom Mandriva 6 10-27-2003 03:15 AM
PHP misconfiguration J_Szucs Linux - Software 0 09-12-2003 12:46 PM
another sendmail misconfiguration? GraemeK Linux - Networking 7 09-08-2003 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration