Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dr Kim Foale
    @kimadactyl
    kim@chips:~/git/taichi/taichi_rails$ dig dev.azk.io
    
    ; <<>> DiG 9.9.5-11ubuntu1.3-Ubuntu <<>> dev.azk.io
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41121
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 512
    ;; QUESTION SECTION:
    ;dev.azk.io.            IN    A
    
    ;; AUTHORITY SECTION:
    azk.io.            899    IN    SOA    ns-584.awsdns-09.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
    
    ;; Query time: 381 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Fri Mar 25 18:50:46 GMT 2016
    ;; MSG SIZE  rcvd: 123
    
    kim@chips:~/git/taichi/taichi_rails$ dig dev.azk.io @172.18.0.1
    
    ; <<>> DiG 9.9.5-11ubuntu1.3-Ubuntu <<>> dev.azk.io @172.18.0.1
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17972
    ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;dev.azk.io.            IN    A
    
    ;; ANSWER SECTION:
    dev.azk.io.        0    IN    A    172.18.0.1
    
    ;; Query time: 0 msec
    ;; SERVER: 172.18.0.1#53(172.18.0.1)
    ;; WHEN: Fri Mar 25 18:50:53 GMT 2016
    ;; MSG SIZE  rcvd: 44
    
    kim@chips:~/git/taichi/taichi_rails$ getent hosts dev.azk.io
    172.18.0.1      dev.azk.io
    This message was deleted
    This message was deleted
    This message was deleted
    kim@chips:~/git/taichi/taichi_rails$ getent hosts dev.azk.io
    172.18.0.1      dev.azk.io
    kim@chips:~/git/taichi/taichi_rails$ sed -i -re "s/(hosts:.*\s{1,}resolver)(\s{1,}\[[^]|.]*\]){0,1}($|\s\w)(.*)/\1 [UNAVAIL=return]\3\4/; s/\s*$//;" /etc/nsswitch.conf
    sed: couldn't open temporary file /etc/sedr8H9x3: Permission denied
    kim@chips:~/git/taichi/taichi_rails$ sudo sed -i -re "s/(hosts:.*\s{1,}resolver)(\s{1,}\[[^]|.]*\]){0,1}($|\s\w)(.*)/\1 [UNAVAIL=return]\3\4/; s/\s*$//;" /etc/nsswitch.conf
    kim@chips:~/git/taichi/taichi_rails$ 
    kim@chips:~/git/taichi/taichi_rails$ 
    kim@chips:~/git/taichi/taichi_rails$ getent hosts dev.azk.io
    172.18.0.1      dev.azk.io
    getting "refused to connect"
    Everton Ribeiro
    @nuxlli
    oh god..rsrs
    Dr Kim Foale
    @kimadactyl
    rsrs? :)
    oic :)
    you sure its not something else ive done?
    Everton Ribeiro
    @nuxlli
    I do not really have to say, the dns service on Linux is very complicated, and Ubuntu is even more
    this will sound bad, but you have tried to restart your machine?
    Dr Kim Foale
    @kimadactyl
    yes i just did
    its only network manager working now
    not sure if that made it more complex or not.
    Everton Ribeiro
    @nuxlli
    in theory it was to be made easier
    Dr Kim Foale
    @kimadactyl
    dinnertime biab
    Everton Ribeiro
    @nuxlli
    ok
    when you return:
    # Now try this
    # Fix! It will change
    # for : hosts:          files resolver [UNAVAIL=return] mdns4_minimal [NOTFOUND=return] dns
    # this: hosts:          files mdns4_minimal [NOTFOUND=return] dns [SUCCESS=continue] resolver
    sudo sed -i -re "s/(hosts:.*)\s{1,}resolver(\s{1,}\[[^]|.]*\]){0,1}($|\s\w)(.*)/\1\3\4 [SUCCESS=continue] resolver/; s/\s*$//;" /etc/nsswitch.conf
    
    # Test
    getent hosts dev.azk.io
    Dr Kim Foale
    @kimadactyl
    still not working :(
    kim@chips:~/git/taichi/taichi_rails$ getent hosts dev.azk.io
    172.18.0.1      dev.azk.io
    whats it meant to be?
    Everton Ribeiro
    @nuxlli
    ping, browsers, no work?
    Dr Kim Foale
    @kimadactyl
    ooo
    kim@chips:~/git/taichi/taichi_rails$ ping dev.azk.io
    PING dev.azk.io (172.18.0.1) 56(84) bytes of data.
    64 bytes from 172.18.0.1: icmp_seq=1 ttl=64 time=0.040 ms
    64 bytes from 172.18.0.1: icmp_seq=2 ttl=64 time=0.045 ms
    64 bytes from 172.18.0.1: icmp_seq=3 ttl=64 time=0.051 ms
    Everton Ribeiro
    @nuxlli
    nice
    Dr Kim Foale
    @kimadactyl
    hmm
    This message was deleted
    kim@chips:~/git/taichi/taichi_rails$ ping dev.azk.io
    PING dev.azk.io (172.18.0.1) 56(84) bytes of data.
    64 bytes from 172.18.0.1: icmp_seq=1 ttl=64 time=0.040 ms
    64 bytes from 172.18.0.1: icmp_seq=2 ttl=64 time=0.045 ms
    64 bytes from 172.18.0.1: icmp_seq=3 ttl=64 time=0.051 ms
    ^C
    --- dev.azk.io ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2000ms
    rtt min/avg/max/mdev = 0.040/0.045/0.051/0.007 ms
    kim@chips:~/git/taichi/taichi_rails$ 
    kim@chips:~/git/taichi/taichi_rails$ sudo sed -i -re "s/(hosts:.*)\s{1,}resolver(\s{1,}\[[^]|.]*\]){0,1}($|\s\w)(.*)/\1\3\4 [SUCCESS=continue] resolver/; s/\s*$//;" /etc/nsswitch.conf
    kim@chips:~/git/taichi/taichi_rails$ ping dev.azk.io
    ping: unknown host dev.azk.io
    im a bit confused :)
    Everton Ribeiro
    @nuxlli
    me too :P
    Dr Kim Foale
    @kimadactyl
    is there an order i need to do things in, eg, starting azk, running the commands, etc
    Everton Ribeiro
    @nuxlli
    back to the old version of /etc/nsswitch.conf
    Dr Kim Foale
    @kimadactyl
    it currently looks like this
    This message was deleted
    This message was deleted
    kim@chips:~/git/taichi/taichi_rails$ cat /etc/nsswitch.conf 
    # /etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc-reference' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.
    
    passwd:         compat
    group:          compat
    shadow:         compat
    
    hosts:          files mdns4_minimal [NOTFOUND=return] dns [SUCCESS=continue] [SUCCESS=continue] resolver
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    Everton Ribeiro
    @nuxlli
    ual
    remove one "[SUCCESS=continue]"
    Dr Kim Foale
    @kimadactyl
    ah ok ran your command twice by accident :smile:
    have a ping again
    Everton Ribeiro
    @nuxlli
    nice
    Dr Kim Foale
    @kimadactyl
    ooo
    "no application configured"
    Everton Ribeiro
    @nuxlli
    nice!
    Dr Kim Foale
    @kimadactyl
    https://taichi-school.dev.azk.io/ unable to connect then
    dev.azk.io giving no application
    Everton Ribeiro
    @nuxlli
    now you can try start your application with azk start