bigbluebutton / bbb-install

BASH script to install BigBlueButton in 30 minutes.
GNU Lesser General Public License v3.0
617 stars 538 forks source link

bbb-install: DNS lookup for mydomain.com resolved to x.x.x.x(mylocalip) but didn't match local x.x.x.x(mypublicIP) #179

Open dhewow opened 4 years ago

dhewow commented 4 years ago

image

in my office i using firewall for NAT IP, I have 122.x.x.x public ip, and 192.168.x.x private ip, when i install bbb i get this problem like the photo above

### this error information " bbb-install: DNS lookup for mydomain.com resolved to x.x.x.x(mylocalip) but didn't match local x.x.x.x(mypublicIP)

i run for install using this script -greenlight- wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-22 -s bbb.example.com -e info@example.com -g

please help me...

SamuelWei commented 4 years ago

Same issue

evaristorivi commented 4 years ago

I have commented on the following lines and it has worked check_host() { if [ -z "$PROVIDED_CERTIFICATE" ]; then need_pkg dnsutils apt-transport-https net-tools DIG_IP=$(dig +short $1 | grep '^[.0-9]*$' | tail -n1) if [ -z "$DIG_IP" ]; then err "Unable to resolve $1 to an IP address using DNS lookup."; fi get_IP $1 if [ "$DIG_IP" != "$IP" ]; then err "DNS lookup for $1 resolved to $DIG_IP but didn't match local $IP."; fi fi }

tatangs commented 4 years ago

Same issue... @evaristorivi how to do that? and what command in root? step by step please... I'm Newbie..

evaristorivi commented 4 years ago

Same issue... @evaristorivi how to do that? and what command in root? step by step please... I'm Newbie..

wget https://ubuntu.bigbluebutton.org/bbb-install.sh

nano bbb-install.sh

cat bbb-install.sh | bash -s -- -v xenial-22 -s bbb.domain.com -e Mail@mail.com

dhewow commented 4 years ago

Same issue... @evaristorivi how to do that? and what command in root? step by step please... I'm Newbie..

wget https://ubuntu.bigbluebutton.org/bbb-install.sh

nano bbb-install.sh

cat bbb-install.sh | bash -s -- -v xenial-22 -s bbb.domain.com -e Mail@mail.com

thanks for your help @evaristorivi , but in my solution is, i can solve it with change my DNS in my server, because if i using my private DNS i can't ping my public IP, but if i using my public DNS i can ping my public IP, so i only change my DNS to 8.8.8.8 from google, it solve my problem, thanks all :)

HakamSaffour commented 4 years ago

Hi @dhewow can you explain step by step what did you do to solve this issue?

derek-shnosh commented 4 years ago

@tatangs I'll elaborate on @evaristorivi's response.

  1. Download the install script... wget https://ubuntu.bigbluebutton.org/bbb-install.sh

  2. Edit the script...

    • Open the bbb-install.sh script with nano to comment out the check_host function... nano bbb-install.sh
    • Go to line number 515; type CTRL,SHIFT,- and you'll get a prompt that says "Enter line number, column number:". Type "515" and hit ENTER
    • Put a # in front of this section of code...
    • Before:
      check_host() {
      if [ -z "$PROVIDED_CERTIFICATE" ]; then
      need_pkg dnsutils apt-transport-https net-tools
      DIG_IP=$(dig +short $1 | grep '^[.0-9]*$' | tail -n1)
      if [ -z "$DIG_IP" ]; then err "Unable to resolve $1 to an IP address using DNS lookup.";  fi
      get_IP $1
      if [ "$DIG_IP" != "$IP" ]; then err "DNS lookup for $1 resolved to $DIG_IP but didn't match local $IP."; fi
      fi
      }
    • After:
      #check_host() {
      #  if [ -z "$PROVIDED_CERTIFICATE" ]; then
      #    need_pkg dnsutils apt-transport-https net-tools
      #    DIG_IP=$(dig +short $1 | grep '^[.0-9]*$' | tail -n1)
      #    if [ -z "$DIG_IP" ]; then err "Unable to resolve $1 to an IP address using DNS lookup.";  fi
      #    get_IP $1
      #    if [ "$DIG_IP" != "$IP" ]; then err "DNS lookup for $1 resolved to $DIG_IP but didn't match local $IP."; fi
      #  fi
      #}
    • Exit and save by typing CTRL-X, then hitting Y and then ENTER.
  3. Run the modified script as root... bash ./bbb-install.sh -v xenial-22 -s bbb.domain.com -e address@domain.com