• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to [twich DNS] to connect easily from an old iPhone to a service on a local computer

Scheduled Pinned Locked Moved DHCP and DNS
6 Posts 3 Posters 530 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Michel-angelo
    last edited by Nov 18, 2022, 2:27 PM

    (Assuming twiching DNS is the solution)

    Hello. In my home, I have a server on a mac in the basement. The mac is accessible from my LAN through its IP Address. To access a specific service on this server, I can connect to the mac by its IP address and knock on the service's door by stating the port number allocated to said service (say 9999) where said service is waiting. I simply dial on Safari the above-described URL, which is <http://[IP address of the mac]:[port number]>
    (my reason for doing so is outlined below).

    Can I simplify this long typing by replacing the whole above URL by some shorter URL alias like the single letter L ?

    PUTTING MY PFSENSE SG-1000 MICRO-FIREWALL TO WORK:

    I tried to give this machine an alias to a short ip address by adding the specifics to the Services>DNS Resolver menu.

    Enable DNQ resolver was already checked "ON"

    I tried many combinations but always failed. I can ping 192.168.XXX.YYY or imaczzzz.local but cannot ping L.

    Can anyone confirm whether or not what I want to achieve is indeed achievable and, if YES, give me a pointer to the correct page of the pfSense book on internet.

    Why access my server from an old iPhone ? The server hosts my home automation program (xTension) and the subject service is an unencrypted web access point to its command interface. I want to dedicate to my home automation an expired iPhone 5 stripped of its SIM card, connected to my home LAN by Wi-Fi, attached to an old Brodit car iPhone support for a short battery recharge every day. Then to access home automation for lighting, I would select Safari and type in it the single address L:9999 (assuming 9999 is the port number) for the lighting command.

    Thank you very much in advance for any hint in the right direction.

    G 1 Reply Last reply Nov 18, 2022, 2:36 PM Reply Quote 0
    • G
      Gertjan @Michel-angelo
      last edited by Gertjan Nov 18, 2022, 2:36 PM Nov 18, 2022, 2:36 PM

      @michel-angelo said in How to [twich DNS] to connect easily from an old iPhone to a service on a local computer:

      I would select Safari and type in it the single address L:9999 (assuming 9999 is the port number) for the lighting command.

      For the web browser to work, you have to respect classic host name criteria.
      So : L:99999 is a 'syntax error'.
      L.a.b:9999 would do the job
      Where L is the host name and a.b is the domain name.

      Now you are handling 'by the rules', and you can make a host override on the Resolvers's settings page :

      303d4580-ef6d-4a63-9998-71ce00b64d41-image.png

      After Save and Apply, a test from a LAN based PC :

      C:\Users\gwkro>nslookup L.a.b
      Serveur :   pfSense.my-local-network.net
      Address:  192.168.1.1
      
      Nom :    L.a.b
      Address:  192.168.1.100
      

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      M 1 Reply Last reply Nov 20, 2022, 8:56 AM Reply Quote 0
      • M
        Michel-angelo @Gertjan
        last edited by Nov 20, 2022, 8:56 AM

        @gertjan Hello GertJan. My earlier mistake was believing I was seeking an alias to an IP number: not URL-like and not hostname-like. Then, instead of "L.a.b", I selected "L.a".

        It took me some time to make it work: a ping or a lookup made on the pfSense router-firewall GUI would work, but the same ping or lookup made on a networked mac would fail.

        For the mac, the reason was: A very long time ago, I had modified the mac's NAT preferences in iCloud introducing specified mandatory NAT servers and then completely forgotten about it. This may have vetoed pfSense's NAT Resolver attempt to resolve the address.

        Then on an iPhone, 'L.a:9999" opens duck-duck-go (no-success) while "http://L.a";9999" would immediately trigger the Service (success).

        ... Which worked; Thanks GertJan for the change.

        J 1 Reply Last reply Nov 20, 2022, 9:00 AM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @Michel-angelo
          last edited by Nov 20, 2022, 9:00 AM

          @michel-angelo said in How to [twich DNS] to connect easily from an old iPhone to a service on a local computer:

          specified mandatory NAT servers

          huh? You mean you specified dns, or you were using apples hide my IP via iCloud Private Relay..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          M 1 Reply Last reply Nov 20, 2022, 11:14 AM Reply Quote 0
          • M
            Michel-angelo
            last edited by Nov 20, 2022, 10:48 AM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M
              Michel-angelo @johnpoz
              last edited by Nov 20, 2022, 11:14 AM

              @johnpoz
              I just verified. In the Network preference of the mac, under "DNS", I had specified a bunch of IP addresses of entities other than my own ISP (like 1.1.1.1 or 9.9.9.9 ...), owned by Google, Clouflare and possibly others. I erased all entries in this field yesterday and just checked now : it contains one entry it added itself, which is 198.168.xxx.1 : the LAN address of my SG-1000 pfSense firewall-router, in the private vlAN of which this mac is client.

              1 Reply Last reply Reply Quote 0
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received