GithubHelp home page GithubHelp logo

Get DNS working about minimal HOT 12 CLOSED

ivandavidov avatar ivandavidov commented on July 28, 2024
Get DNS working

from minimal.

Comments (12)

************ avatar ************ commented on July 28, 2024

Networking newb here:

  • where you able to get any networking working at all? E.g.: wget google.com or a direct IP wget 216.58.211.78 or something else? Neither worked for me.
  • What would DNS allow us to do? It would allow to do wget google.com instead of just the direct IP?

from minimal.

ivandavidov avatar ivandavidov commented on July 28, 2024

The DNS issue is due to very old architectural issues with static linking of "glibc" and unfortunately this issue affects directly the DSN functionality. There may be other broken bits which are affected due to this issue.

The only reasonable solution is to migrate to another C library like "uclibc" or "musl". Until then we have LAN network support on IP level which is sufficient for DHCP.

from minimal.

ivandavidov avatar ivandavidov commented on July 28, 2024

I managed to get around the nasty DNS problem. I had to use musl-libc instead of glibc and I had to apply several hacks both in BusyBox and musl-libc. The good news is that all of this stuff can be automated but two or three of these hacks might not work on all environments.

Here is what I've got so far:

image

Looks good to me! :)

from minimal.

************ avatar ************ commented on July 28, 2024

Great news!!

from minimal.

ivandavidov avatar ivandavidov commented on July 28, 2024

I just pushed my latest changes which solve the DNS resolution issue. The whole build process now includes 3 more steps:

  1. Get musl-libc from the official website.
  2. Build musl-libc and install it locally.
  3. Patch musl-libc in order to build BusyBox smoothly.

The idea is to use the kernel headers from the newly downloaded kernel but this approach currently doesn't work. Another possible solution is to use the headers which are already available on the host machine. However, this might not work well on all environments. Third possible approach is to patch BusyBox and leave musl untouched.

The build process for BusyBox has been changed as well and two applets have been disabled due to compilation issues (this should be double-checked).

from minimal.

ivandavidov avatar ivandavidov commented on July 28, 2024

The experimental folder "musl-busybox" reuses the headers from the downloaded kernel and the generated ISO image is fully functional, including the network functionality. You should try using the scripts from this experimental folder.

from minimal.

jtloper1 avatar jtloper1 commented on July 28, 2024

I just built from musl-busybox. Will not ping google.com

from minimal.

ivandavidov avatar ivandavidov commented on July 28, 2024
  1. Did you try any other network functionality, e.g. wget and traceroute?
  2. Do you have some kind of firewall? If you are running from VM, there might be some firewall restrictions.
  3. Are you sure your "Minimal Linux Live" distro gets its own IP address via DHCP?

from minimal.

jtloper1 avatar jtloper1 commented on July 28, 2024

I am in the middle of another build right now. I am running vbox. Will post
screen shots.
On Apr 1, 2016 10:48 AM, "Ivan Davidov" [email protected] wrote:

  1. Did you try any other functionality, e.g. wget and traceroute?
  2. Do you have some kind of firewall? If you are running from VM, there
    might be some firewall restrictions.
  3. Are you sure your "Minimal Linux Live" distro gets its own IP address
    via DHCP?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#9 (comment)

from minimal.

jtloper1 avatar jtloper1 commented on July 28, 2024

Seems to be working now. Thanks

from minimal.

ivandavidov avatar ivandavidov commented on July 28, 2024

The experimental folder 'glibc-busybox' solves the DNS issue and there are no kernel header collisions. However, the overall build is now ~32MB and it takes ~256MB RAM to run. And it may not work on 64bit machines (I've tested it on 32bit machine).

from minimal.

ivandavidov avatar ivandavidov commented on July 28, 2024

The latest published stable release '03-Apr-2016' fixes the problem and I'm closing the issue.

from minimal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.