DNS Settings (mlunix)

Home Forums Conduit: mLinux Model DNS Settings (mlunix)

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #21702
    AMINE LTAIEF
    Participant

    This 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 LTAIEF

    #21710
    Daniel Yang
    Participant

    Check 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

    #21711
    John Klug
    Moderator

    If 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

    #21718
    AMINE LTAIEF
    Participant

    Hello,

    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.254

    post-up echo “nameserver 8.8.8.8”> /etc/resolv.conf

    Thanks a lot for your help
    Amine LTAIEF

    #22074
    David Kruger
    Participant

    Note: 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.conf

    Looking at /etc/resolv.conf after reboot, there is nothing but the original one line.

    This is really annoying!!!

    • This reply was modified 6 years, 4 months ago by David Kruger.
    • This reply was modified 6 years, 4 months ago by David Kruger.
    #22091
    John Klug
    Moderator

    Did you try:

    ping 8.8.8.8

    How about:

    ping [gateway address]?

    #22093
    David Kruger
    Participant

    Thanks 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 6 years, 4 months ago by David Kruger.
    #22096
    John Klug
    Moderator

    Your 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.

    #22097
    John Klug
    Moderator

    I should add that /etc/network/interfaces is ignored in AEP, I believe.

    #22099
    David Kruger
    Participant

    These 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.

    #22197
    AMINE LTAIEF
    Participant

    Hi,
    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.254

    post-up echo “nameserver 8.8.8.8″> /etc/resolv.conf

    Help Please .

    root@mtcdt:~# ping google.com
    ping: unknown host google.com

    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=30.9 ms
    64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=28.3 ms

    Regards,
    Amine

    #22353
    AMINE LTAIEF
    Participant

    Hello
    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 ?
    Regards

    #22817
    LEONARDO MEIRELES
    Participant

    Hello 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!

    #22838
    LEONARDO MEIRELES
    Participant

    Hello 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 ms

    In 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!

    #30509
    rgnews@nisient.com
    Participant

    Just 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

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.