ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

/etc/hosts for Local Domains in Linux

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 เม.ย. 2018
  • Edit /etc/hosts file in Linux to set fake/local domain names for a small network.

ความคิดเห็น • 23

  • @outofahat9363
    @outofahat9363 ปีที่แล้ว +1

    came for the tutorial , stayed for the subtle asmr

  • @unanimous8510
    @unanimous8510 ปีที่แล้ว

    That’s what I needed to boost my understanding of my local setup

  • @AndersJackson
    @AndersJackson 5 ปีที่แล้ว +1

    A tip. Use the command getent(1) to look up what programs will search for looking up different databases on your machine, like hosts, passwd, groups etc etc. That will just resolve the names, not doing any real connections. I use it all the time. :-)

  • @stockeaswar4150
    @stockeaswar4150 ปีที่แล้ว

    Really a great explanation..
    what a clarity ....Thank you so much

  • @renyirish
    @renyirish 3 ปีที่แล้ว +2

    Great explanation of the files and all! 100 likes for you. Thanks a lot!

    • @sirajul-anik
      @sirajul-anik 2 ปีที่แล้ว

      with your 100, +1 for me, in 4 years it only got 99 likes? it's 200 now! 🥺

  • @sreepaljsp
    @sreepaljsp 4 ปีที่แล้ว +2

    good one.. great explanation.. thank you

  • @dungeonmp3
    @dungeonmp3 2 ปีที่แล้ว

    pretty good explanation of the host file. only thing missing was more custom config but still good vid...

  • @facileprinceps4687
    @facileprinceps4687 ปีที่แล้ว

    I can access my localhost by its "pseudo name" using the lynx command, but when typing in the same URL in the webbrowser i get the: This site can't be reached error message - how could that be?

  • @Helpexplorer
    @Helpexplorer ปีที่แล้ว

    This guy is a real Hacker

  • @bevedel
    @bevedel 2 ปีที่แล้ว

    Thank you, really helped.

  • @PETAJOULE543
    @PETAJOULE543 5 ปีที่แล้ว

    Simple DNS understanding by etc/hosts and etc/resolv.conf that work locally, I like it. How would the file system work in case of remote centralized dns server?

    • @AndersJackson
      @AndersJackson 5 ปีที่แล้ว +1

      When the computer is going to try to connect to a machine through its name, it will usually use the file /etc/hosts first, and then ask a DNS server if it can't find the name there. As he said in the video. So the DNS is not used at all when you change the /e/hosts.
      How it will resolve a name, is decided in /etc/nsswitch.conf. So you can configure where and how it will resolve a name to an IP address.
      You can test this with the command getent(1). Like "getent hosts www.google.com", you can also do in the other direction, like "getent hosts 192.168.1.1". You can also use other names instead of "hosts", like "ahosts", "passwd", "groups", etc etc.

  • @nagarajunagari4749
    @nagarajunagari4749 3 ปีที่แล้ว

    Thanks a lot steven.

  • @me_hanics
    @me_hanics 3 ปีที่แล้ว

    Why do we use Virtual boxes for webservers?

  • @Rickety3263
    @Rickety3263 5 ปีที่แล้ว

    Haha. Ive been watching guys like you for hours about server configs... where do you patch your ethernet cables in your virtual machine?

    • @AN-ic7wp
      @AN-ic7wp 4 ปีที่แล้ว

      Shut up

  • @yuhaz
    @yuhaz 6 ปีที่แล้ว

    Great tut, thx!

  • @youngvic6406
    @youngvic6406 3 ปีที่แล้ว

    great... want to know how do i set domain name young.com and its reached address be 192.168.10.10 with the primary dns server 172.16.0.10

  • @abdullahjandali5441
    @abdullahjandali5441 5 ปีที่แล้ว

    What if i try accessing it on the browser?

    • @AndersJackson
      @AndersJackson 5 ปีที่แล้ว +1

      He is using a web browser, the lynx(1) web browser.
      You could see what programs, like web browsers will resolve the host name part of an URL with the command getent(1). Please look up the man page for more information.