2 Replies Latest reply on Mar 19, 2015 8:02 PM by luke smithons

    Server Bind using a name instead of an ip

    luke smithons Newbie

      is there a reason for using a ip address in the server bind option -b 0.0.0.0 instead of a dns name like -b server1

       

      i am using JBoss 4.2.3 and was wondering if it was possible to use a dns instead of IP, is it best practice to use IP?

        • 1. Re: Server Bind using a name instead of an ip
          Jooho Lee Newbie

          Hi luke,

           

          You can also use server name like following :

          ~~~

             wildfly_home/bin/standalone.sh -b server1

          ~~~

           

          -b  option is same as $jboss.bind.address, which means if you set the option, it will replace of the system property in standalone-*.xml

          ~~~

          <interface name="public">

                      <inet-address value="${jboss.bind.address:127.0.0.1}"/>

          </interface>

          ~~

           

          However, I recommend that you use IP address directly because it would be faster. IP address do not need to find anything like name which should be changed to IP via /etc/hosts or DNS server.

          Moreover, sometimes it cause some issues to search DNS server for the right IP.

           

          I hope it would help you.

          Thanks,

          Jooho Lee.

          1 of 1 people found this helpful
          • 2. Re: Server Bind using a name instead of an ip
            luke smithons Newbie

            Thankyou Kindly Jooho,