DNS Settings (mlunix)
Home › Forums › Conduit: mLinux Model › DNS Settings (mlunix)
Tagged: mLunix Settings
- This topic has 14 replies, 6 voices, and was last updated 4 years, 11 months ago by
rgnews@nisient.com.
-
AuthorPosts
-
November 10, 2017 at 4:09 am #21702
AMINE LTAIEF
ParticipantThis is my first message on the forum so I’m software engineer.
I just started with Multitech Conduit mLunix I have succeeded to configured and set a Eth connection but My gateway can’t access to internet due to DNS settings.
I tried to set my DNS in resolv.conf file but always i had the following commands :root@mtcdt:~# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=29.7 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=28.9 ms
Then
root@mtcdt:~# wget google.com --2017-11-09 21:22:24-- http://google.com/ Resolving google.com... failed: Name or service not known. wget: unable to resolve host address 'google.com'
I have noticed that after reboot I lose the DNS settings !!
What do you think ?
Thanks a lot for your help
Amine LTAIEFNovember 10, 2017 at 11:39 am #21710Daniel Yang
ParticipantCheck out http://www.multitech.net/developer/forums/topic/mlinux-resolv-conf-issue/#post-9878.
As Brandon pointed out, /etc/resolv.conf is configured by default as a “volatile” file and this scheme works well when using DHCP or when using PPP (cellular). A simple workaround for static configuration is to put something like the following in your /etc/network/interfaces file for eth0.
post-up echo “nameserver 8.8.8.8″ > /etc/resolv.conf
November 10, 2017 at 12:02 pm #21711John Klug
ModeratorIf using dnsmasq, the location of /etc/resolv.conf is configurable. A suggested location would be /etc/network/resolv.conf.
In your DNS configuration for dnsmasq:
resolv-file=/etc/network/resolv.conf
November 10, 2017 at 2:34 pm #21718AMINE LTAIEF
ParticipantHello,
Thank you for your responses
after adding the following line under etho config :
post-up echo “nameserver 8.8.8.8″ > /etc/resolv.conf
I have aloways the some issue !! when I exec wget command as follow :root@mtcdt:~# wget google.com --2017-11-10 21:28:43-- http://google.com/ Resolving google.com... failed: Name or service not known. wget: unable to resolve host address 'google.com'
What can I do now please ? I have right configured my /etc/network/interface as follow
# Wired interface
auto eth0
iface eth0 inet static
## Home configuration
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.254post-up echo “nameserver 8.8.8.8”> /etc/resolv.conf
Thanks a lot for your help
Amine LTAIEFDecember 11, 2017 at 4:35 am #22074David Kruger
ParticipantNote: I am using the AEP model.
I would also like a solution to this. Have the exact same issue.
/etc/network/interfaces:# Wired interface
auto eth0
iface eth0 inet static
address 10.5.90.6
netmask 255.255.255.252
gateway 10.5.90.5
post-up echo “nameserver 8.8.8.8” > /etc/resolv.confLooking at /etc/resolv.conf after reboot, there is nothing but the original one line.
This is really annoying!!!
-
This reply was modified 7 years, 3 months ago by
David Kruger.
-
This reply was modified 7 years, 3 months ago by
David Kruger.
December 11, 2017 at 8:25 am #22091John Klug
ModeratorDid you try:
ping 8.8.8.8
How about:
ping [gateway address]?
December 11, 2017 at 8:56 am #22093David Kruger
ParticipantThanks for the suggestion… looks like the conduit firmware neglects (or needs to be done manually) to add the default route. This could be fixed using
route add default gw [gw address]
Annoyed, because this is the second network issue I have encountered in the last week.
-
This reply was modified 7 years, 3 months ago by
David Kruger.
December 11, 2017 at 9:24 am #22096John Klug
ModeratorYour netmask is questionable:
netmask 255.255.255.252
10.x.y.z is usually class A.
Your netmask would then be 255.0.0.0
I have never had problems with the gateway line in /etc/network/interfaces.
December 11, 2017 at 9:26 am #22097John Klug
ModeratorI should add that /etc/network/interfaces is ignored in AEP, I believe.
December 11, 2017 at 9:47 am #22099David Kruger
ParticipantThese are just the IP addresses I was told to use, what the underlying network resembles, I can only guess. Regardless, it seems to be working… for now
You are right saying that /etc/network/interfaces is ignored. I discovered this while digging further today..
Awaiting support response to the query. Will post it here for interest sake. Or make a new case referring to the AEP model rather.
December 28, 2017 at 1:39 pm #22197AMINE LTAIEF
ParticipantHi,
Always, The same problem !! DNS not resolved, This my configs :# Wired interface
auto eth0
iface eth0 inet static
## Home configuration
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.254post-up echo “nameserver 8.8.8.8″> /etc/resolv.conf
Help Please .
root@mtcdt:~# ping google.com
ping: unknown host google.comroot@mtcdt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=30.9 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=28.3 msRegards,
AmineJanuary 16, 2018 at 4:28 pm #22353AMINE LTAIEF
ParticipantHello
I have always the same problem, I con’t connect to Internet from my mlunix
What can I do ?what means dnsmaq and how can I configure it ?
I set up gatway in address and netmasq in the interface file and dns in /etc/resolv.conf file but always the same issue. Could you help me ?
Could you please give me details of the config steps to setup my mlunix ?
RegardsMarch 12, 2018 at 5:05 pm #22817LEONARDO MEIRELES
ParticipantHello guys!
I’m new here.
Someone solved this problem?
I have same problem with conduit mlinux, I can’t access the internet.
Help me, please!
Thanks!
March 14, 2018 at 7:24 am #22838LEONARDO MEIRELES
ParticipantHello guys!
I solved this problem just add the line:
post-up echo “nameserver 8.8.8.8″ > /etc/resolv.conf
The results are:
PING http://www.google.com (216.58.202.4) 56(84) bytes of data.
64 bytes from gru06s26-in-f4.1e100.net (216.58.202.4): icmp_seq=1 ttl=52 time=11 .8 ms
64 bytes from gru06s26-in-f4.1e100.net (216.58.202.4): icmp_seq=2 ttl=52 time=11 .7 msIn time that’s ok, but on the other hands, I can’t to access thethingsnetwork server. I don’t known what happend.I try all options about configuration in The Things Network site, but not working!
Help me please!
Cheers!
April 6, 2020 at 5:15 am #30509rgnews@nisient.com
ParticipantJust answering here for people searching how to persist /etc/resolv.conf (always good practice to keep copies of originals):
edit /etc/default/volatiles/00_core, and remove the two lines that symlink and set null contents to /etc/resolv.conf.
edit /etc/default/rcS and set VOLATILE_ENABLE_CACHE=no.
You can now edit /etc/resolv.conf to contain what you want, and it will persist through reboot.
Cheers
Rob -
This reply was modified 7 years, 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.